mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 18:30:55 -06:00
Various code fixes.
This commit is contained in:
parent
0059ed7bde
commit
249b0c3377
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user