| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 24 | public function addCustomNamespace(TemplateEvent $event) |
|
| 33 | { |
||
| 34 | 24 | foreach (iterator_to_array($event->getTemplate()->getDocument()->childNodes) as $child) { |
|
| 35 | 24 | if ($child instanceof \DOMElement) { |
|
| 36 | 24 | DOMHelper::checkNamespaces($child, $this->customNamespaces); |
|
| 37 | 24 | } |
|
| 38 | 24 | } |
|
| 39 | 24 | } |
|
| 40 | |||
| 50 |