mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 05:06:37 +00:00
Replace phpstan suggestions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class Preferences extends Facade
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
Log::warning('Hi there');
|
||||
app('log')->warning('Hi there');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user