Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function invokeHook(Environment $env, array $context, $name): string |
||
31 | { |
||
32 | $return = ''; |
||
33 | |||
34 | foreach ($this->hooks as $hook) { |
||
35 | |||
36 | /** @var TemplateHook $hook */ |
||
37 | if ($this->targetMatches($hook, $name)) { |
||
38 | |||
39 | $hook->setEnvironment($env); |
||
40 | $hook->setContext($context); |
||
41 | |||
42 | $return .= ' '; |
||
43 | $return .= $hook->render(); |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return $return; |
||
48 | } |
||
72 | } |