Completed
Push — master ( 4b90ae...869de7 )
by Andreas
02:32
created
src/HolidayIteratorFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.