Completed
Push — allowFirstAndLastObservance ( 3795fe...50f166 )
by Andreas
15s
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
         return $iterator;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             default:
178 178
                 throw new RuntimeException('Unknown element encountered');
179 179
         }
180
-	}
180
+    }
181 181
 
182 182
     private function getFree(DOMElement $element): bool
183 183
     {
Please login to merge, or discard this patch.