Passed
Push — develop ( 71b03c...334703 )
by Brent
32:34 queued 24:49
created
src/Stitcher/Page/Adapter/PaginationAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         array $adapterConfiguration,
26 26
         VariableParser $variableParser
27 27
     ) {
28
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
28
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
29 29
             throw InvalidPaginationAdapter::create();
30 30
         }
31 31
 
@@ -150,6 +150,6 @@  discard block
 block discarded – undo
150 150
 
151 151
     protected function createPaginatedUrl(string $pageId, int $index): string
152 152
     {
153
-        return str_replace('{' .$this->parameter. '}', $index, $pageId);
153
+        return str_replace('{' . $this->parameter . '}', $index, $pageId);
154 154
     }
155 155
 }
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/AdapterFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->setRule(
44 44
             CollectionAdapter::class,
45
-            function (string $adapterType, array $adapterConfiguration) {
45
+            function(string $adapterType, array $adapterConfiguration) {
46 46
                 if ($adapterType !== 'collection') {
47 47
                     return null;
48 48
                 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $this->setRule(
58 58
             FilterAdapter::class,
59
-            function (string $adapterType, array $adapterConfiguration) {
59
+            function(string $adapterType, array $adapterConfiguration) {
60 60
                 if ($adapterType !== 'filter') {
61 61
                     return null;
62 62
                 }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $this->setRule(
72 72
             PaginationAdapter::class,
73
-            function (string $adapterType, array $adapterConfiguration) {
73
+            function(string $adapterType, array $adapterConfiguration) {
74 74
                 if ($adapterType !== 'pagination') {
75 75
                     return null;
76 76
                 }
Please login to merge, or discard this patch.
src/Stitcher/Task/PartialParse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $filteredConfiguration = array_filter(
38 38
             $parsedConfiguration,
39
-            function ($key) use ($matchingRoute) {
39
+            function($key) use ($matchingRoute) {
40 40
                 return $key === $matchingRoute['_route'];
41 41
             }, ARRAY_FILTER_USE_KEY
42 42
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $configurationFile = File::read($this->configurationFile);
65 65
 
66
-        if (! $configurationFile) {
66
+        if (!$configurationFile) {
67 67
             throw InvalidConfiguration::siteConfigurationFileNotFound();
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Stitcher/Variable/AbstractVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function getParsed()
29 29
     {
30
-        if (! $this->parsed) {
30
+        if (!$this->parsed) {
31 31
             $this->parse();
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Stitcher/Variable/VariableFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     private function setJsonRule(): DynamicFactory
84 84
     {
85
-        return $this->setRule(JsonVariable::class, function (string $value) {
85
+        return $this->setRule(JsonVariable::class, function(string $value) {
86 86
             if (pathinfo($value, PATHINFO_EXTENSION) !== 'json') {
87 87
                 return null;
88 88
             }
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
 
94 94
     private function setYamlRule(): void
95 95
     {
96
-        $this->setRule(YamlVariable::class, function (string $value) {
97
-            if (! $this->yamlParser) {
96
+        $this->setRule(YamlVariable::class, function(string $value) {
97
+            if (!$this->yamlParser) {
98 98
                 return null;
99 99
             }
100 100
 
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 
111 111
     private function setMarkdownRule(): void
112 112
     {
113
-        $this->setRule(MarkdownVariable::class, function (string $value) {
114
-            if (! $this->markdownParser) {
113
+        $this->setRule(MarkdownVariable::class, function(string $value) {
114
+            if (!$this->markdownParser) {
115 115
                 return null;
116 116
             }
117 117
 
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 
126 126
     private function setImageRule(): void
127 127
     {
128
-        $this->setRule(ImageVariable::class, function ($value) {
129
-            if (! $this->imageParser) {
128
+        $this->setRule(ImageVariable::class, function($value) {
129
+            if (!$this->imageParser) {
130 130
                 return null;
131 131
             }
132 132
 
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($value);
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.