@@ -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]; |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | $dom->load($file); |
| 62 | 62 | $dom->xinclude(); |
| 63 | 63 | |
| 64 | - if (! $dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) { |
|
| 64 | + if (!$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) { |
|
| 65 | 65 | throw new \Exception('XML-File does not validate agains schema'); |
| 66 | 66 | } |
| 67 | 67 | foreach ($dom->documentElement->childNodes as $child) { |
| 68 | - if (! $child instanceof \DOMElement) { |
|
| 68 | + if (!$child instanceof \DOMElement) { |
|
| 69 | 69 | continue; |
| 70 | 70 | } |
| 71 | 71 | $iterator->append($this->getElement($child)); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $file = __DIR__ . '/../share/%s.xml'; |
| 87 | 87 | $file1 = sprintf($file, $isoCode); |
| 88 | 88 | |
| 89 | - if (! is_readable($file1)) { |
|
| 89 | + if (!is_readable($file1)) { |
|
| 90 | 90 | throw new \UnexpectedValueException(sprintf( |
| 91 | 91 | 'There is no holiday-file for %s', |
| 92 | 92 | $isoCode |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $day = CalendarDayFactory::createCalendarDay( |
| 117 | 117 | (int) $child->getAttribute('day'), |
| 118 | 118 | (int) $child->getAttribute('month'), |
| 119 | - ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian') |
|
| 119 | + ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian') |
|
| 120 | 120 | ); |
| 121 | 121 | if ($child->hasAttribute('year')) { |
| 122 | 122 | $day->setYear((int) $child->getAttribute('year')); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $day = CalendarDayFactory::createCalendarDay( |
| 131 | 131 | (int) $child->getAttribute('day'), |
| 132 | 132 | (int) $child->getAttribute('month'), |
| 133 | - ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian') |
|
| 133 | + ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian') |
|
| 134 | 134 | ); |
| 135 | 135 | |
| 136 | 136 | return new DateFollowUp( |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $this->getFree($child), |
| 139 | 139 | $day, |
| 140 | 140 | $child->getAttribute('followup'), |
| 141 | - ($child->hasAttribute('replaced')?explode(' ', $child->getAttribute('replaced')):[]) |
|
| 141 | + ($child->hasAttribute('replaced') ?explode(' ', $child->getAttribute('replaced')) : []) |
|
| 142 | 142 | ); |
| 143 | 143 | case 'relative': |
| 144 | 144 | return new Relative( |