@@ -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 |
@@ -113,8 +113,8 @@ |
||
113 | 113 | 'saturday' => IntlCalendar::DOW_SATURDAY, |
114 | 114 | ]; |
115 | 115 | |
116 | - return array_map(function (string $day) use ($daymap) { |
|
117 | - if (! isset($daymap[$day])) { |
|
116 | + return array_map(function(string $day) use ($daymap) { |
|
117 | + if (!isset($daymap[$day])) { |
|
118 | 118 | return null; |
119 | 119 | } |
120 | 120 | return $daymap[$day]; |
@@ -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)) { |