Completed
Push — main ( 60525c...52b609 )
by Andreas
19s queued 12s
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
             if ($child->nodeName === 'resources') {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $file = __DIR__ . '/../share/%s.xml';
95 95
         $file1 = sprintf($file, $isoCode);
96 96
 
97
-        if (! is_readable($file1)) {
97
+        if (!is_readable($file1)) {
98 98
             throw new UnexpectedValueException(sprintf(
99 99
                 'There is no holiday-file for %s',
100 100
                 $isoCode
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 $day = CalendarDayFactory::createCalendarDay(
124 124
                     (int) $child->getAttribute('day'),
125 125
                     (int) $child->getAttribute('month'),
126
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
126
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
127 127
                 );
128 128
                 if ($child->hasAttribute('year')) {
129 129
                     $day->setYear((int) $child->getAttribute('year'));
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $day = CalendarDayFactory::createCalendarDay(
138 138
                     (int) $child->getAttribute('day'),
139 139
                     (int) $child->getAttribute('month'),
140
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
140
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
141 141
                 );
142 142
 
143 143
                 return new DateFollowUp(
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     $this->getFree($child),
146 146
                     $day,
147 147
                     $child->getAttribute('followup'),
148
-                    ($child->hasAttribute('replaced')?explode(' ', $child->getAttribute('replaced')):[])
148
+                    ($child->hasAttribute('replaced') ?explode(' ', $child->getAttribute('replaced')) : [])
149 149
                 );
150 150
             case 'relative':
151 151
                 return new Relative(
Please login to merge, or discard this patch.
src/HolidayIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     #[\ReturnTypeWillChange]
47 47
     public function append($value)
48 48
     {
49
-        if (! $value instanceof HolidayIteratorItemInterface) {
49
+        if (!$value instanceof HolidayIteratorItemInterface) {
50 50
             return;
51 51
         }
52 52
 
Please login to merge, or discard this patch.