Passed
Branch v1 (38f69e)
by Andrew
04:33
created
Category
src/twigextensions/ProfilerTokenParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
             'profile' => $this->parser->getExpressionParser()->parseExpression(),
43 43
         ];
44 44
         $stream->expect(\Twig_Token::BLOCK_END_TYPE);
45
-        $nodes['body'] = $this->parser->subparse([$this, 'decideProfilerEnd'], true);
45
+        $nodes[ 'body' ] = $this->parser->subparse([ $this, 'decideProfilerEnd' ], true);
46 46
         $stream->expect(\Twig_Token::BLOCK_END_TYPE);
47 47
 
48
-        return new ProfilerNode($nodes, [], $lineno, $this->getTag());
48
+        return new ProfilerNode($nodes, [ ], $lineno, $this->getTag());
49 49
     }
50 50
 
51 51
 
Please login to merge, or discard this patch.
src/TwigProfiler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             Event::on(
74 74
                 View::class,
75 75
                 View::EVENT_BEFORE_RENDER_TEMPLATE,
76
-                function (TemplateEvent $event) {
76
+                function(TemplateEvent $event) {
77 77
                     Craft::debug(
78 78
                         'View::EVENT_BEFORE_RENDER_TEMPLATE',
79 79
                         __METHOD__
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             Craft::t(
88 88
                 'twig-profiler',
89 89
                 '{name} plugin loaded',
90
-                ['name' => $this->name]
90
+                [ 'name' => $this->name ]
91 91
             ),
92 92
             __METHOD__
93 93
         );
Please login to merge, or discard this patch.
src/models/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public function rules(): array
42 42
     {
43 43
         return [
44
-            ['appendTemplateName', 'boolean'],
44
+            [ 'appendTemplateName', 'boolean' ],
45 45
         ];
46 46
     }
47 47
 }
Please login to merge, or discard this patch.