Passed
Push — develop ( 04fdb9...e51949 )
by Brent
03:55
created
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.
src/Stitcher/Exception/FileNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 
12 12
     public static function staticFile(string $path): self
13 13
     {
14
-        return self::withPath($path, 'This file was tried to be copied as a static file. Please see your `staticFiles` configuration.' );
14
+        return self::withPath($path, 'This file was tried to be copied as a static file. Please see your `staticFiles` configuration.');
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/AdapterFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $this->setRule(
45 45
             CollectionAdapter::class,
46
-            function (string $adapterType, array $adapterConfiguration) {
46
+            function(string $adapterType, array $adapterConfiguration) {
47 47
                 if ($adapterType !== 'collection') {
48 48
                     return null;
49 49
                 }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $this->setRule(
59 59
             FilterAdapter::class,
60
-            function (string $adapterType, array $adapterConfiguration) {
60
+            function(string $adapterType, array $adapterConfiguration) {
61 61
                 if ($adapterType !== 'filter') {
62 62
                     return null;
63 63
                 }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $this->setRule(
73 73
             PaginationAdapter::class,
74
-            function (string $adapterType, array $adapterConfiguration) {
74
+            function(string $adapterType, array $adapterConfiguration) {
75 75
                 if ($adapterType !== 'pagination') {
76 76
                     return null;
77 77
                 }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $this->setRule(
87 87
             OrderAdapter::class,
88
-            function (string $adapterType, array $adapterConfiguration) {
88
+            function(string $adapterType, array $adapterConfiguration) {
89 89
                 if ($adapterType !== 'order') {
90 90
                     return null;
91 91
                 }
Please login to merge, or discard this patch.