Test Failed
Push — develop ( 0d79d2...755cd9 )
by Brent
12:23
created
src/Stitcher/Variable/YamlVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $this->parsed = $this->parser->parse(File::read($this->unparsed));
37 37
 
38 38
         foreach ($this->parsed as $id => $parsedItem) {
39
-            if (! \is_array($parsedItem) || isset($parsedItem['id'])) {
39
+            if (!\is_array($parsedItem) || isset($parsedItem['id'])) {
40 40
                 continue;
41 41
             }
42 42
 
Please login to merge, or discard this patch.
src/Stitcher/Variable/VariableFactory.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     private function setJsonRule(): DynamicFactory
85 85
     {
86
-        return $this->setRule(JsonVariable::class, function (string $value) {
86
+        return $this->setRule(JsonVariable::class, function(string $value) {
87 87
             if (pathinfo($value, PATHINFO_EXTENSION) !== 'json') {
88 88
                 return null;
89 89
             }
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
 
95 95
     private function setYamlRule(): void
96 96
     {
97
-        $this->setRule(YamlVariable::class, function (string $value) {
98
-            if (! $this->yamlParser) {
97
+        $this->setRule(YamlVariable::class, function(string $value) {
98
+            if (!$this->yamlParser) {
99 99
                 return null;
100 100
             }
101 101
 
102 102
             $extension = pathinfo($value, PATHINFO_EXTENSION);
103 103
 
104
-            if (! \in_array($extension, ['yaml', 'yml'])) {
104
+            if (!\in_array($extension, ['yaml', 'yml'])) {
105 105
                 return null;
106 106
             }
107 107
 
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 
112 112
     private function setMarkdownRule(): void
113 113
     {
114
-        $this->setRule(MarkdownVariable::class, function (string $value) {
115
-            if (! $this->markdownParser) {
114
+        $this->setRule(MarkdownVariable::class, function(string $value) {
115
+            if (!$this->markdownParser) {
116 116
                 return null;
117 117
             }
118 118
 
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
 
127 127
     private function setImageRule(): void
128 128
     {
129
-        $this->setRule(ImageVariable::class, function ($value) {
130
-            if (! $this->imageParser) {
129
+        $this->setRule(ImageVariable::class, function($value) {
130
+            if (!$this->imageParser) {
131 131
                 return null;
132 132
             }
133 133
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
             $extension = pathinfo($srcPath, PATHINFO_EXTENSION);
137 137
 
138
-            if (! \in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) {
138
+            if (!\in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) {
139 139
                 return null;
140 140
             }
141 141
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
     private function setDirectoryRule(): void
147 147
     {
148
-        $this->setRule(DirectoryVariable::class, function ($value) {
148
+        $this->setRule(DirectoryVariable::class, function($value) {
149 149
             if (!is_string($value) || substr($value, -1) !== '/') {
150 150
                 return null;
151 151
             }
Please login to merge, or discard this patch.