Completed
Push — allowFirstAndLastObservance ( b1e10f...3795fe )
by Andreas
19s
created
src/HolidayIteratorFactory.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -78,20 +78,20 @@  discard block
 block discarded – undo
78 78
                 continue;
79 79
             }
80 80
 
81
-			try {
82
-				$element = $this->getElement($child);
83
-				if ($child->hasAttribute('firstobservance') || $child->hasAttribute('lastobservance')) {
84
-					$element = new ObservanceDecorator(
85
-						$element,
86
-						$child->hasAttribute('firstobservance') ? (int)$child->getAttribute('firstobservance') : null,
87
-						$child->hasAttribute('lastobservance') ? (int)$child->getAttribute('lastobservance') : null,
88
-					);
89
-				}
90
-
91
-				$iterator->append($element);
92
-			} catch (Throwable $e) {
93
-				// Do nothing on purpose
94
-			}
81
+            try {
82
+                $element = $this->getElement($child);
83
+                if ($child->hasAttribute('firstobservance') || $child->hasAttribute('lastobservance')) {
84
+                    $element = new ObservanceDecorator(
85
+                        $element,
86
+                        $child->hasAttribute('firstobservance') ? (int)$child->getAttribute('firstobservance') : null,
87
+                        $child->hasAttribute('lastobservance') ? (int)$child->getAttribute('lastobservance') : null,
88
+                    );
89
+                }
90
+
91
+                $iterator->append($element);
92
+            } catch (Throwable $e) {
93
+                // Do nothing on purpose
94
+            }
95 95
 
96 96
         }
97 97
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             default:
179 179
                 throw new RuntimeException('Unknown element encountered');
180 180
         }
181
-	}
181
+    }
182 182
 
183 183
     private function getFree(DOMElement $element): bool
184 184
     {
Please login to merge, or discard this patch.