@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot\Twig\Node; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot\Twig\Node; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot\Twig\Node; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot\Twig\TokenParser; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | ]; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Shoot\Shoot; |
| 5 | 5 | |