Test Failed
Push — develop ( d71559...359c84 )
by Brent
06:20 queued 17s
created
src/Stitcher/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
     {
156 156
         $routeFile = File::path('src/routes.php');
157 157
 
158
-        if (! file_exists($routeFile)) {
158
+        if (!file_exists($routeFile)) {
159 159
             return;
160 160
         }
161 161
 
Please login to merge, or discard this patch.
src/Stitcher/Application/Server.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     protected function getRequest(): Request
45 45
     {
46
-        if (! $this->request) {
46
+        if (!$this->request) {
47 47
             $this->request = ServerRequest::fromGlobals();
48 48
         }
49 49
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     protected function handleDynamicRoute(): ?Response
63 63
     {
64
-        if (! $this->router) {
64
+        if (!$this->router) {
65 65
             return null;
66 66
         }
67 67
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         try {
74 74
             $response = $this->handleStaticRoute();
75 75
 
76
-            if (! $response) {
76
+            if (!$response) {
77 77
                 $response = $this->handleDynamicRoute();
78 78
             }
79 79
         } catch (StitcherException $e) {
Please login to merge, or discard this patch.
src/Stitcher/Page/PageFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
     {
24 24
         $id = $value['id'] ?? null;
25 25
 
26
-        if (! $id) {
26
+        if (!$id) {
27 27
             throw InvalidConfiguration::pageIdMissing();
28 28
         }
29 29
 
30 30
         $template = $value['template'] ?? null;
31 31
         $variables = $value['variables'] ?? [];
32 32
 
33
-        if (! $template) {
33
+        if (!$template) {
34 34
             throw InvalidConfiguration::pageTemplateMissing($id);
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/PaginationAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function __construct(array $adapterConfiguration, VariableParser $variableParser)
18 18
     {
19
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
19
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
20 20
             throw InvalidPaginationAdapter::create();
21 21
         }
22 22
 
@@ -128,6 +128,6 @@  discard block
 block discarded – undo
128 128
 
129 129
     protected function createPaginatedUrl(string $pageId, int $index): string
130 130
     {
131
-        return str_replace('{' .$this->parameter. '}', $index, $pageId);
131
+        return str_replace('{' . $this->parameter . '}', $index, $pageId);
132 132
     }
133 133
 }
Please login to merge, or discard this patch.
src/Stitcher/Task/PartialParse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         CollectionAdapter::setFilterId($matchingRoute['id'] ?? null);
35 35
 
36
-        $filteredConfiguration = array_filter($parsedConfiguration, function ($key) use ($matchingRoute) {
36
+        $filteredConfiguration = array_filter($parsedConfiguration, function($key) use ($matchingRoute) {
37 37
             return $key === $matchingRoute['_route'];
38 38
         }, ARRAY_FILTER_USE_KEY);
39 39
 
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/CollectionAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function __construct(array $adapterConfiguration, VariableParser $variableParser)
20 20
     {
21
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
21
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
22 22
             throw InvalidCollectionAdapter::create();
23 23
         }
24 24
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         $prev = prev($this->entries);
141 141
 
142
-        if (! $prev) {
142
+        if (!$prev) {
143 143
             reset($this->entries);
144 144
         } else {
145 145
             $browse['prev'] = $prev;
Please login to merge, or discard this patch.