mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Code cleanup
This commit is contained in:
@@ -59,14 +59,14 @@ final class IntervalException extends Exception
|
||||
array $intervals,
|
||||
int $code = 0,
|
||||
?Throwable $previous = null
|
||||
): IntervalException {
|
||||
): self {
|
||||
$message = sprintf(
|
||||
'The periodicity %s is unknown. Choose one of available periodicity: %s',
|
||||
$periodicity->name,
|
||||
join(', ', $intervals)
|
||||
implode(', ', $intervals)
|
||||
);
|
||||
|
||||
$exception = new IntervalException($message, $code, $previous);
|
||||
$exception = new self($message, $code, $previous);
|
||||
$exception->periodicity = $periodicity;
|
||||
$exception->availableIntervals = $intervals;
|
||||
return $exception;
|
||||
|
Reference in New Issue
Block a user