@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public static function sortByPriority(array &$haystack): void |
30 | 30 | { |
31 | - uasort($haystack, function ($a, $b) { |
|
31 | + uasort($haystack, function($a, $b) { |
|
32 | 32 | $prorityOfA = $a instanceof Prioritable ? $a->getPriority() : Prioritable::LOWEST_PRIORITY; |
33 | 33 | $prorityOfB = $b instanceof Prioritable ? $b->getPriority() : Prioritable::LOWEST_PRIORITY; |
34 | 34 |
@@ -34,8 +34,7 @@ |
||
34 | 34 | $other = new DateTimeImmutable($this->datetime); |
35 | 35 | $datetime = |
36 | 36 | $input instanceof DateTimeInterface ? |
37 | - $input : |
|
38 | - new DateTimeImmutable($input); |
|
37 | + $input : new DateTimeImmutable($input); |
|
39 | 38 | |
40 | 39 | return $this->compare($datetime, $this->operator, $other); |
41 | 40 | } catch (Throwable) { |
@@ -34,8 +34,7 @@ |
||
34 | 34 | $other = fn() => new DateTimeImmutable($context[$this->other]); |
35 | 35 | $datetime = |
36 | 36 | $input instanceof DateTimeInterface ? |
37 | - $input : |
|
38 | - new DateTimeImmutable($input); |
|
37 | + $input : new DateTimeImmutable($input); |
|
39 | 38 | |
40 | 39 | return array_key_exists($this->other, $context) |
41 | 40 | && $this->compare($datetime, $this->operator, $other()); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function compare(mixed $a, string $operator, mixed $b): bool |
12 | 12 | { |
13 | - return match ($operator) { |
|
13 | + return match($operator) { |
|
14 | 14 | Operator::EQUAL => $a == $b, |
15 | 15 | Operator::EXACTLY => $a === $b, |
16 | 16 | Operator::GREATER_THAN => $a > $b, |