diff --git a/app/Support/Calendar/Calculator.php b/app/Support/Calendar/Calculator.php index a26fb5ea18..b4475c7df7 100644 --- a/app/Support/Calendar/Calculator.php +++ b/app/Support/Calendar/Calculator.php @@ -1,7 +1,7 @@ . + */ + namespace FireflyIII\Support\Calendar\Exceptions; use FireflyIII\Support\Calendar\Periodicity; -use JetBrains\PhpStorm\Pure; final class IntervalException extends \Exception { @@ -12,17 +30,22 @@ final class IntervalException extends \Exception public readonly Periodicity $periodicity; public readonly array $availableIntervals; - public static function unavailable(Periodicity $periodicity, array $instervals, int $code = 0, ?\Throwable $previous = null): IntervalException + public static function unavailable( + Periodicity $periodicity, + array $intervals, + int $code = 0, + ?\Throwable $previous = null + ): IntervalException { $message = sprintf( 'The periodicity %s is unknown. Choose one of available periodicity: %s', $periodicity->name, - join(', ', $instervals) + join(', ', $intervals) ); $exception = new IntervalException($message, $code, $previous); $exception->periodicity = $periodicity; - $exception->availableIntervals = $instervals; + $exception->availableIntervals = $intervals; return $exception; } } diff --git a/app/Support/Calendar/Periodicity.php b/app/Support/Calendar/Periodicity.php index 75c492bb13..83d5d449f9 100644 --- a/app/Support/Calendar/Periodicity.php +++ b/app/Support/Calendar/Periodicity.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Bimonthly.php b/app/Support/Calendar/Periodicity/Bimonthly.php index a8aac196fa..b521813bc1 100644 --- a/app/Support/Calendar/Periodicity/Bimonthly.php +++ b/app/Support/Calendar/Periodicity/Bimonthly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Daily.php b/app/Support/Calendar/Periodicity/Daily.php index 39fc34196d..1ca47c983a 100644 --- a/app/Support/Calendar/Periodicity/Daily.php +++ b/app/Support/Calendar/Periodicity/Daily.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Fortnightly.php b/app/Support/Calendar/Periodicity/Fortnightly.php index a64880a058..cd9af54441 100644 --- a/app/Support/Calendar/Periodicity/Fortnightly.php +++ b/app/Support/Calendar/Periodicity/Fortnightly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/HalfYearly.php b/app/Support/Calendar/Periodicity/HalfYearly.php index e8d6242bb2..f5bb2f0308 100644 --- a/app/Support/Calendar/Periodicity/HalfYearly.php +++ b/app/Support/Calendar/Periodicity/HalfYearly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Interspacable.php b/app/Support/Calendar/Periodicity/Interspacable.php index a10658cdfc..e61f360dff 100644 --- a/app/Support/Calendar/Periodicity/Interspacable.php +++ b/app/Support/Calendar/Periodicity/Interspacable.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Interval.php b/app/Support/Calendar/Periodicity/Interval.php index 73db1f0409..1e40ef27b8 100644 --- a/app/Support/Calendar/Periodicity/Interval.php +++ b/app/Support/Calendar/Periodicity/Interval.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Monthly.php b/app/Support/Calendar/Periodicity/Monthly.php index 34cc9bf3e6..e1739a643a 100644 --- a/app/Support/Calendar/Periodicity/Monthly.php +++ b/app/Support/Calendar/Periodicity/Monthly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Quarterly.php b/app/Support/Calendar/Periodicity/Quarterly.php index b20dc60250..46bac74728 100644 --- a/app/Support/Calendar/Periodicity/Quarterly.php +++ b/app/Support/Calendar/Periodicity/Quarterly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Weekly.php b/app/Support/Calendar/Periodicity/Weekly.php index 519ea143d8..fa0724cefc 100644 --- a/app/Support/Calendar/Periodicity/Weekly.php +++ b/app/Support/Calendar/Periodicity/Weekly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/app/Support/Calendar/Periodicity/Yearly.php b/app/Support/Calendar/Periodicity/Yearly.php index 768f3d87b3..466cb19640 100644 --- a/app/Support/Calendar/Periodicity/Yearly.php +++ b/app/Support/Calendar/Periodicity/Yearly.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/CalculatorProvider.php b/tests/unit/Support/Calendar/CalculatorProvider.php index 12f23d7363..800adb15b0 100644 --- a/tests/unit/Support/Calendar/CalculatorProvider.php +++ b/tests/unit/Support/Calendar/CalculatorProvider.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/CalculatorTest.php b/tests/unit/Support/Calendar/CalculatorTest.php index a5c8162a01..29662db573 100644 --- a/tests/unit/Support/Calendar/CalculatorTest.php +++ b/tests/unit/Support/Calendar/CalculatorTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/BimonthlyTest.php b/tests/unit/Support/Calendar/Periodicity/BimonthlyTest.php index e44b188e33..3bcd6977c5 100644 --- a/tests/unit/Support/Calendar/Periodicity/BimonthlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/BimonthlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/DailyTest.php b/tests/unit/Support/Calendar/Periodicity/DailyTest.php index 56169a646b..c1175891d1 100644 --- a/tests/unit/Support/Calendar/Periodicity/DailyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/DailyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/FortnightlyTest.php b/tests/unit/Support/Calendar/Periodicity/FortnightlyTest.php index abc63993ec..3c2977074c 100644 --- a/tests/unit/Support/Calendar/Periodicity/FortnightlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/FortnightlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/HalfYearlyTest.php b/tests/unit/Support/Calendar/Periodicity/HalfYearlyTest.php index fa15fbfc35..b12d6410e5 100644 --- a/tests/unit/Support/Calendar/Periodicity/HalfYearlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/HalfYearlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/IntervalProvider.php b/tests/unit/Support/Calendar/Periodicity/IntervalProvider.php index 2c62f5802f..88e3cd63ae 100644 --- a/tests/unit/Support/Calendar/Periodicity/IntervalProvider.php +++ b/tests/unit/Support/Calendar/Periodicity/IntervalProvider.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/IntervalTestCase.php b/tests/unit/Support/Calendar/Periodicity/IntervalTestCase.php index a0cf5bb124..de3a640fd9 100644 --- a/tests/unit/Support/Calendar/Periodicity/IntervalTestCase.php +++ b/tests/unit/Support/Calendar/Periodicity/IntervalTestCase.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php b/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php index a9fe75d15d..c7235729c3 100644 --- a/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/QuarterlyTest.php b/tests/unit/Support/Calendar/Periodicity/QuarterlyTest.php index 093276bcb1..60e6eba15c 100644 --- a/tests/unit/Support/Calendar/Periodicity/QuarterlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/QuarterlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/WeeklyTest.php b/tests/unit/Support/Calendar/Periodicity/WeeklyTest.php index b2fa868518..598886b52a 100644 --- a/tests/unit/Support/Calendar/Periodicity/WeeklyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/WeeklyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). * diff --git a/tests/unit/Support/Calendar/Periodicity/YearlyTest.php b/tests/unit/Support/Calendar/Periodicity/YearlyTest.php index fb8e70d9d1..462f4ceaaa 100644 --- a/tests/unit/Support/Calendar/Periodicity/YearlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/YearlyTest.php @@ -1,7 +1,7 @@ * * This file is part of Firefly III (https://github.com/firefly-iii). *