| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function inLoop(PluginArgument $arg) |
||
| 39 | { |
||
| 40 | $node = $arg->getNode(); |
||
| 41 | if (!($node instanceof DOMNode)) { |
||
| 42 | throw new Exception\LogicException('Expected node of type DOMNode'); |
||
| 43 | } |
||
| 44 | |||
| 45 | $spec = $arg->getSpec(); |
||
| 46 | $this->instructionsRenderer->expandInstructions($spec, $arg->getTranslation()); |
||
| 47 | if (!empty($spec['instructions']) && !empty($node->ownerDocument)) { |
||
| 48 | $this->instructionsRenderer->subInstructions([$node], $spec['instructions'], $arg->getTranslation()); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 |