mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Expand action and clean up code.
This commit is contained in:
@@ -34,11 +34,10 @@ use Throwable;
|
||||
*/
|
||||
final class IntervalException extends Exception
|
||||
{
|
||||
|
||||
public array $availableIntervals;
|
||||
public Periodicity $periodicity;
|
||||
/** @var string */
|
||||
protected $message = 'The periodicity %s is unknown. Choose one of available periodicity: %s';
|
||||
protected $message = 'The periodicity %s is unknown. Choose one of available periodicity: %s';
|
||||
|
||||
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
|
||||
{
|
||||
@@ -60,8 +59,7 @@ final class IntervalException extends Exception
|
||||
array $intervals,
|
||||
int $code = 0,
|
||||
?Throwable $previous = null
|
||||
): IntervalException
|
||||
{
|
||||
): IntervalException {
|
||||
$message = sprintf(
|
||||
'The periodicity %s is unknown. Choose one of available periodicity: %s',
|
||||
$periodicity->name,
|
||||
|
Reference in New Issue
Block a user