mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Various code cleanup.
This commit is contained in:
@@ -144,7 +144,7 @@ class GracefulNotFoundHandler extends ExceptionHandler
|
||||
$route = $request->route();
|
||||
$param = $route->parameter('account');
|
||||
if ($param instanceof Account) {
|
||||
$accountId = (int)$param->id;
|
||||
$accountId = $param->id;
|
||||
}
|
||||
if (!($param instanceof Account)) {
|
||||
$accountId = (int)$param;
|
||||
|
@@ -36,6 +36,7 @@ final class IntervalException extends Exception
|
||||
{
|
||||
public array $availableIntervals;
|
||||
public Periodicity $periodicity;
|
||||
/** @var mixed */
|
||||
protected $message = 'The periodicity %s is unknown. Choose one of available periodicity: %s';
|
||||
|
||||
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
|
||||
|
Reference in New Issue
Block a user