Passed
Branch master (6c4ac7)
by Victor
04:38
created
Category
src/Twig/NodeVisitor/ModelNodeVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\NodeVisitor;
5 5
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return string The name of the presentation model.
63 63
      */
64
-    public function for(string $view): string
64
+    public function for (string $view): string
65 65
     {
66 66
         return $this->presentationModels[$view] ?? PresentationModel::class;
67 67
     }
Please login to merge, or discard this patch.
src/Twig/Node/ModelNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\Node;
5 5
 
Please login to merge, or discard this patch.
src/Twig/Node/DisplayStartNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\Node;
5 5
 
Please login to merge, or discard this patch.
src/Twig/Node/FindPresentationModelInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\Node;
5 5
 
@@ -15,5 +15,5 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return string The name of the presentation model.
17 17
      */
18
-    public function for(string $view): string;
18
+    public function for (string $view): string;
19 19
 }
Please login to merge, or discard this patch.
src/Twig/Node/DisplayEndNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\Node;
5 5
 
Please login to merge, or discard this patch.
src/Twig/TokenParser/ModelTokenParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot\Twig\TokenParser;
5 5
 
Please login to merge, or discard this patch.
src/Pipeline.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot;
5 5
 
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $middleware = array_reverse($middleware);
43 43
 
44
-        return array_reduce($middleware, function (callable $next, MiddlewareInterface $middleware) {
45
-            return function (View $view) use ($middleware, $next): View {
44
+        return array_reduce($middleware, function(callable $next, MiddlewareInterface $middleware) {
45
+            return function(View $view) use ($middleware, $next): View {
46 46
                 return $middleware->process($view, $this->context, $next);
47 47
             };
48
-        }, function (View $view): View {
48
+        }, function(View $view): View {
49 49
             $view->render();
50 50
 
51 51
             return $view;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function getFilters(): array
117 117
     {
118 118
         return [
119
-            new TwigFilter('variables', function (PresentationModel $presentationModel): array {
119
+            new TwigFilter('variables', function(PresentationModel $presentationModel): array {
120 120
                 return $presentationModel->getVariables();
121 121
             })
122 122
         ];
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function getTests(): array
161 161
     {
162 162
         return [
163
-            new TwigTest('model', function ($value): bool {
163
+            new TwigTest('model', function($value): bool {
164 164
                 return $value instanceof PresentationModel;
165 165
             })
166 166
         ];
Please login to merge, or discard this patch.
src/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot;
5 5
 
Please login to merge, or discard this patch.
src/PresentationModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Shoot\Shoot;
5 5
 
Please login to merge, or discard this patch.