@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | public function append($value) |
| 39 | 39 | { |
| 40 | - if (! $value instanceof HolidayIteratorItemInterface) { |
|
| 40 | + if (!$value instanceof HolidayIteratorItemInterface) { |
|
| 41 | 41 | return; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $orthodoxEaster = $this->getOrthodoxEaster($year); |
| 63 | 63 | if ($endOfPessach > $orthodoxEaster) { |
| 64 | 64 | $weekday = $endOfPessach->format('w'); |
| 65 | - return $endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D')); |
|
| 65 | + return $endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D')); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | return $orthodoxEaster; |
@@ -53,11 +53,11 @@ discard block |
||
| 53 | 53 | $dom->load($file); |
| 54 | 54 | $dom->xinclude(); |
| 55 | 55 | |
| 56 | - if (! $dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) { |
|
| 56 | + if (!$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) { |
|
| 57 | 57 | throw new \Exception('XML-File does not validate agains schema'); |
| 58 | 58 | } |
| 59 | 59 | foreach ($dom->documentElement->childNodes as $child) { |
| 60 | - if (! $child instanceof \DOMElement) { |
|
| 60 | + if (!$child instanceof \DOMElement) { |
|
| 61 | 61 | continue; |
| 62 | 62 | } |
| 63 | 63 | $iterator->append($this->getElement($child)); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | public function createIteratorFromISO3166(string $isoCode) : HolidayIterator |
| 77 | 77 | { |
| 78 | 78 | $file = __DIR__ . '/../share/' . strtoupper($isoCode) . '.xml'; |
| 79 | - if (! is_readable($file)) { |
|
| 79 | + if (!is_readable($file)) { |
|
| 80 | 80 | throw new \UnexpectedValueException(sprintf( |
| 81 | 81 | 'There is no holiday-file for %s', |
| 82 | 82 | $isoCode |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $this->getFree($child), |
| 103 | 103 | $child->getAttribute('day'), |
| 104 | 104 | $child->getAttribute('month'), |
| 105 | - ($child->hasAttribute('year')?$child->getAttribute('year'): null) |
|
| 105 | + ($child->hasAttribute('year') ? $child->getAttribute('year') : null) |
|
| 106 | 106 | ); |
| 107 | 107 | case 'relative': |
| 108 | 108 | return new Relative( |