Replace phpstan suggestions

This commit is contained in:
James Cole
2022-10-30 14:44:49 +01:00
parent c032ffd4f9
commit 33f370359c
45 changed files with 99 additions and 87 deletions

View File

@@ -55,7 +55,7 @@ class BudgetList implements BinderInterface
if (empty($list)) {
Log::warning('Budget list count is zero, return 404.');
app('log')->warning('Budget list count is zero, return 404.');
throw new NotFoundHttpException();
}
@@ -75,7 +75,7 @@ class BudgetList implements BinderInterface
return $collection;
}
}
Log::warning('BudgetList fallback to 404.');
app('log')->warning('BudgetList fallback to 404.');
throw new NotFoundHttpException();
}
}

View File

@@ -47,7 +47,7 @@ class Preferences extends Facade
{
public function __construct()
{
Log::warning('Hi there');
app('log')->warning('Hi there');
}
/**

View File

@@ -222,7 +222,7 @@ trait ConvertsExchangeRates
Log::debug(sprintf('Find rate for %s to Euro', $currency->code));
$euro = TransactionCurrency::whereCode('EUR')->first();
if (null === $euro) {
Log::warning('Cannot do indirect conversion without EUR.');
app('log')->warning('Cannot do indirect conversion without EUR.');
return '0';
}