@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $orthodoxEaster = $this->getOrthodoxEaster($year); |
| 70 | 70 | if ($endOfPessach > $orthodoxEaster) { |
| 71 | 71 | $weekday = (int) $endOfPessach->format('w'); |
| 72 | - return $endOfPessach->add(new DateInterval('P' . (7-$weekday) . 'D')); |
|
| 72 | + return $endOfPessach->add(new DateInterval('P' . (7 - $weekday) . 'D')); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | return $orthodoxEaster; |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | ]; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return array_map(function (string $day) use ($daymap) { |
|
| 106 | - if (! isset($daymap[$day])) { |
|
| 105 | + return array_map(function(string $day) use ($daymap) { |
|
| 106 | + if (!isset($daymap[$day])) { |
|
| 107 | 107 | return null; |
| 108 | 108 | } |
| 109 | 109 | return $daymap[$day]; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay |
| 42 | 42 | { |
| 43 | - if (! Calendar::isValidCalendarName($calendar)) { |
|
| 43 | + if (!Calendar::isValidCalendarName($calendar)) { |
|
| 44 | 44 | throw new UnknownCalendar(sprintf( |
| 45 | 45 | 'The calendar %s is not known to the ICU', |
| 46 | 46 | $calendar |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | #[\ReturnTypeWillChange] |
| 47 | 47 | public function append($value) |
| 48 | 48 | { |
| 49 | - if (! $value instanceof HolidayIteratorItemInterface) { |
|
| 49 | + if (!$value instanceof HolidayIteratorItemInterface) { |
|
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function dateMatches(DateTimeInterface $date): bool |
| 43 | 43 | { |
| 44 | - if (! $this->isWithinObservance((int) $date->format('Y'))) { |
|
| 44 | + if (!$this->isWithinObservance((int) $date->format('Y'))) { |
|
| 45 | 45 | return false; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function decorate(HolidayIteratorItemInterface $element, DOMElement $domElement): HolidayIteratorItemInterface |
| 20 | 20 | { |
| 21 | - if (! $domElement->hasAttribute('firstobservance') && ! $domElement->hasAttribute('lastobservance')) { |
|
| 21 | + if (!$domElement->hasAttribute('firstobservance') && !$domElement->hasAttribute('lastobservance')) { |
|
| 22 | 22 | return $element; |
| 23 | 23 | } |
| 24 | 24 | |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | $day = $cal->toDateTime(); |
| 117 | 117 | $day->modify($direction . ' ' . $modifiedDay); |
| 118 | 118 | $cal->setTime($day->getTimestamp() * 1000); |
| 119 | - $cal2 = clone $this->calendar; |
|
| 119 | + $cal2 = clone $this->calendar; |
|
| 120 | 120 | $cal2->setTime($dateTime->getTimestamp() * 1000); |
| 121 | 121 | |
| 122 | 122 | if (null !== $this->year && $cal->get(IntlCalendar::FIELD_YEAR) !== $cal2->get(IntlCalendar::FIELD_YEAR)) { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public static function forward(): self |
| 45 | 45 | { |
| 46 | - if (! isset(self::$instances[self::FORWARD])) { |
|
| 46 | + if (!isset(self::$instances[self::FORWARD])) { |
|
| 47 | 47 | self::$instances[self::FORWARD] = new self(self::FORWARD); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public static function rewind(): self |
| 54 | 54 | { |
| 55 | - if (! isset(self::$instances[self::REWIND])) { |
|
| 55 | + if (!isset(self::$instances[self::REWIND])) { |
|
| 56 | 56 | self::$instances[self::REWIND] = new self(self::REWIND); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | return new SwapRule( |
| 62 | 62 | $direction, |
| 63 | 63 | GregorianWeekday::fromString($to), |
| 64 | - ...array_map(function ($item) { |
|
| 64 | + ...array_map(function($item) { |
|
| 65 | 65 | return GregorianWeekday::fromString($item); |
| 66 | 66 | }, explode(' ', $when)) |
| 67 | 67 | ); |