@@ -78,20 +78,20 @@ discard block |
||
| 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 |
||
| 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 | { |