Various code fixes.

This commit is contained in:
James Cole 2022-10-31 05:53:36 +01:00
parent 0059ed7bde
commit 249b0c3377
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
88 changed files with 180 additions and 180 deletions

View File

@ -121,7 +121,7 @@ class ExportData extends Command
$exporter->setExportBills($options['export']['bills']);
$exporter->setExportPiggies($options['export']['piggies']);
$data = $exporter->export();
if (0 === count ($data)) {
if (0 === count($data)) {
$this->error('You must export *something*. Use --export-transactions or another option. See docs.firefly-iii.org');
}
$returnCode = 0;

View File

@ -148,10 +148,10 @@ class GracefulNotFoundHandler extends ExceptionHandler
$user = auth()->user();
$route = $request->route();
$param = $route->parameter('account');
if($param instanceof Account) {
if ($param instanceof Account) {
$accountId = (int) $param->id;
}
if(!($param instanceof Account)) {
if (!($param instanceof Account)) {
$accountId = (int) $param;
}
/** @var Account $account */