@@ -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( |