@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function getFunctions(): array |
| 20 | 20 | { |
| 21 | 21 | return [ |
| 22 | - new TwigFunction('hook', [$this->renderer, 'invokeHook'], ['is_safe' => ['html'], 'needs_context' => true, 'needs_environment' => true]), |
|
| 22 | + new TwigFunction('hook', [ $this->renderer, 'invokeHook' ], [ 'is_safe' => [ 'html' ], 'needs_context' => true, 'needs_environment' => true ]), |
|
| 23 | 23 | ]; |
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | public function getMatchingHooks($name): iterable |
| 64 | 64 | { |
| 65 | - return array_filter($this->hooks, function ($hook) use ($name) { |
|
| 65 | + return array_filter($this->hooks, function($hook) use ($name) { |
|
| 66 | 66 | /** @var TemplateHook $hook */ |
| 67 | 67 | return $this->targetMatches($hook, $name); |
| 68 | 68 | }); |