| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | protected function getVars(string $nodeName = 'variable'): array |
||
| 22 | { |
||
| 23 | $children = Dom::getElements($this->node->childNodes, $nodeName); |
||
| 24 | |||
| 25 | $variables = []; |
||
| 26 | foreach ($children as $child) { |
||
| 27 | $name = $this->readAttrText('name', '', $child); |
||
| 28 | $value = $this->readAttrText('value', '', $child); |
||
| 29 | |||
| 30 | $variables[$name] = $value; |
||
| 31 | } |
||
| 32 | |||
| 33 | return $variables; |
||
| 34 | } |
||
| 36 |