| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function inLoop(PluginArgument $arg) |
||
| 45 | { |
||
| 46 | $spec = $arg->getSpec(); |
||
| 47 | if (empty($spec['onVar'])) { |
||
| 48 | return; |
||
| 49 | } |
||
| 50 | |||
| 51 | $this->varTranslator->applyOnVar( |
||
| 52 | $arg->getVarTranslation(), |
||
| 53 | $spec['onVar'], |
||
| 54 | function (array $spec) use ($arg) { |
||
| 55 | |||
| 56 | $this->instructionsRenderer |
||
| 57 | ->expandInstructions($spec, $arg->getTranslation()) |
||
| 58 | ->subInstructions( |
||
| 59 | $arg->getNodes(), |
||
| 60 | $spec['instructions'], |
||
| 61 | $arg->getTranslation() |
||
| 62 | ); |
||
| 63 | } |
||
| 64 | ); |
||
| 65 | } |
||
| 66 | } |
||
| 67 |