Completed
Push — master ( 3d8db6...435c51 )
by Andreas
9s
created
src/HolidayIteratorFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
         $dom->load($file);
55 55
         $dom->xinclude();
56 56
 
57
-        if (! $dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
57
+        if (!$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
58 58
             throw new \Exception('XML-File does not validate agains schema');
59 59
         }
60 60
         foreach ($dom->documentElement->childNodes as $child) {
61
-            if (! $child instanceof \DOMElement) {
61
+            if (!$child instanceof \DOMElement) {
62 62
                 continue;
63 63
             }
64 64
             $iterator->append($this->getElement($child));
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function createIteratorFromISO3166(string $isoCode) : HolidayIterator
78 78
     {
79 79
         $file = __DIR__ . '/../share/' . strtoupper($isoCode) . '.xml';
80
-        if (! is_readable($file)) {
80
+        if (!is_readable($file)) {
81 81
             throw new \UnexpectedValueException(sprintf(
82 82
                 'There is no holiday-file for %s',
83 83
                 $isoCode
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     $this->getFree($child),
104 104
                     $child->getAttribute('day'),
105 105
                     $child->getAttribute('month'),
106
-                    ($child->hasAttribute('year')?$child->getAttribute('year'): null)
106
+                    ($child->hasAttribute('year') ? $child->getAttribute('year') : null)
107 107
                 );
108 108
             case 'dateFollowUp':
109 109
                 return new DateFollowUp(
Please login to merge, or discard this patch.