Update exceptions thrown for better IDE support.

This commit is contained in:
James Cole
2018-02-06 07:50:19 +01:00
parent 9b78069f41
commit 2f95f99890
3 changed files with 11 additions and 19 deletions

View File

@@ -392,9 +392,7 @@ class BillRepository implements BillRepositoryInterface
* @param Carbon $date
*
* @return \Carbon\Carbon
*
* @throws \FireflyIII\Support\Facades\FireflyException
* @throws \FireflyIII\Support\Facades\FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function nextDateMatch(Bill $bill, Carbon $date): Carbon
{
@@ -432,10 +430,6 @@ class BillRepository implements BillRepositoryInterface
* @param Carbon $date
*
* @return Carbon
*
* @throws \FireflyIII\Support\Facades\FireflyException
* @throws \FireflyIII\Support\Facades\FireflyException
* @throws \FireflyIII\Support\Facades\FireflyException
*/
public function nextExpectedMatch(Bill $bill, Carbon $date): Carbon
{

View File

@@ -288,7 +288,6 @@ class ExpandedForm
* @return string
*
* @throws \Throwable
* @throws Facades\FireflyException
*/
public function nonSelectableAmount(string $name, $value = null, array $options = []): string
{
@@ -319,7 +318,6 @@ class ExpandedForm
* @return string
*
* @throws \Throwable
* @throws Facades\FireflyException
*/
public function nonSelectableBalance(string $name, $value = null, array $options = []): string
{

View File

@@ -38,7 +38,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function addPeriod(Carbon $theDate, string $repeatFreq, int $skip): Carbon
{
@@ -86,7 +86,7 @@ class Navigation
* @param string $range
*
* @return array
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function blockPeriods(\Carbon\Carbon $start, \Carbon\Carbon $end, string $range): array
{
@@ -148,7 +148,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function endOfPeriod(\Carbon\Carbon $end, string $repeatFreq): Carbon
{
@@ -211,7 +211,7 @@ class Navigation
* @param string $repeatFreq
* @param \Carbon\Carbon|null $maxDate
*
* @return Carbon
* @return \Carbon\Carbon
*/
public function endOfX(Carbon $theCurrentEnd, string $repeatFreq, ?Carbon $maxDate): Carbon
{
@@ -285,11 +285,11 @@ class Navigation
/**
* @param \Carbon\Carbon $theDate
* @param $repeatFrequency
* @param string $repeatFrequency
*
* @return string
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function periodShow(Carbon $theDate, string $repeatFrequency): string
{
@@ -444,7 +444,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function startOfPeriod(Carbon $theDate, string $repeatFreq): Carbon
{
@@ -496,7 +496,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function subtractPeriod(Carbon $theDate, string $repeatFreq, int $subtract = 1): Carbon
{
@@ -565,7 +565,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function updateEndDate(string $range, Carbon $start): Carbon
{
@@ -604,7 +604,7 @@ class Navigation
*
* @return \Carbon\Carbon
*
* @throws FireflyException
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function updateStartDate(string $range, Carbon $start): Carbon
{