Completed
Push — addIrishHolidays ( f5ec97 )
by Andreas
01:18
created
src/HolidayIteratorFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
         $dom->load($file);
67 67
         $dom->xinclude();
68 68
 
69
-        if (! @$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
69
+        if (!@$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
70 70
             throw new Exception('XML-File does not validate agains schema');
71 71
         }
72 72
         foreach ($dom->documentElement->childNodes as $child) {
73
-            if (! $child instanceof DOMElement) {
73
+            if (!$child instanceof DOMElement) {
74 74
                 continue;
75 75
             }
76 76
             $iterator->append($this->getElement($child));
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $file = __DIR__ . '/../share/%s.xml';
92 92
         $file1 = sprintf($file, $isoCode);
93 93
 
94
-        if (! is_readable($file1)) {
94
+        if (!is_readable($file1)) {
95 95
             throw new UnexpectedValueException(sprintf(
96 96
                 'There is no holiday-file for %s',
97 97
                 $isoCode
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $day = CalendarDayFactory::createCalendarDay(
121 121
                     (int) $child->getAttribute('day'),
122 122
                     (int) $child->getAttribute('month'),
123
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
123
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
124 124
                 );
125 125
                 if ($child->hasAttribute('year')) {
126 126
                     $day->setYear((int) $child->getAttribute('year'));
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 $day = CalendarDayFactory::createCalendarDay(
135 135
                     (int) $child->getAttribute('day'),
136 136
                     (int) $child->getAttribute('month'),
137
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
137
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
138 138
                 );
139 139
 
140 140
                 return new DateFollowUp(
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     $this->getFree($child),
143 143
                     $day,
144 144
                     $child->getAttribute('followup'),
145
-                    ($child->hasAttribute('replaced')?explode(' ', $child->getAttribute('replaced')):[])
145
+                    ($child->hasAttribute('replaced') ?explode(' ', $child->getAttribute('replaced')) : [])
146 146
                 );
147 147
             case 'relative':
148 148
                 return new Relative(
Please login to merge, or discard this patch.