Passed
Push — develop ( 1e3e9e...2a0a90 )
by Brent
02:56
created
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/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.
src/Stitcher/Variable/YamlVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->parsed = $this->parser::parse(File::read($this->unparsed));
35 35
 
36 36
         foreach ($this->parsed as $id => $parsedItem) {
37
-            if (! \is_array($parsedItem) || isset($parsedItem['id'])) {
37
+            if (!\is_array($parsedItem) || isset($parsedItem['id'])) {
38 38
                 continue;
39 39
             }
40 40
 
Please login to merge, or discard this patch.
src/Pageon/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         foreach ($configurationFiles as $configurationFile) {
69 69
             $loadedFileConfiguration = require $configurationFile;
70 70
 
71
-            if (! \is_array($loadedFileConfiguration)) {
71
+            if (!\is_array($loadedFileConfiguration)) {
72 72
                 continue;
73 73
             }
74 74
 
Please login to merge, or discard this patch.
src/Stitcher/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         $pluginConfiguration = require $configurationPath;
119 119
 
120
-        if (! \is_array($pluginConfiguration)) {
120
+        if (!\is_array($pluginConfiguration)) {
121 121
             throw InvalidPlugin::configurationMustBeArray($pluginClass, $configurationPath);
122 122
         }
123 123
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $routeFile = File::path('src/routes.php');
156 156
 
157
-        if (! file_exists($routeFile)) {
157
+        if (!file_exists($routeFile)) {
158 158
             return;
159 159
         }
160 160
 
Please login to merge, or discard this patch.
src/Stitcher/Variable/VariableFactory.php 1 patch
Spacing   +9 added lines, -9 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,14 +93,14 @@  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
 
101 101
             $extension = pathinfo($value, PATHINFO_EXTENSION);
102 102
 
103
-            if (! \in_array($extension, ['yaml', 'yml'])) {
103
+            if (!\in_array($extension, ['yaml', 'yml'])) {
104 104
                 return null;
105 105
             }
106 106
 
@@ -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
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
             $extension = pathinfo($srcPath, PATHINFO_EXTENSION);
136 136
 
137
-            if (! \in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) {
137
+            if (!\in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) {
138 138
                 return null;
139 139
             }
140 140
 
Please login to merge, or discard this patch.
src/Stitcher/Page/PageParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
                 $adapterConfiguration
68 68
             );
69 69
 
70
-            if (! $adapter) {
70
+            if (!$adapter) {
71 71
                 throw InvalidConfiguration::adapterNotFound($adapterType);
72 72
             }
73 73
 
Please login to merge, or discard this patch.