Passed
Push — main ( 204ce4...10aeaf )
by Michael
02:31
created
src/Twig/Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Twig/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.