Test Setup Failed
Pull Request — master (#137)
by Anton
10:11
created
src/Env.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
     public static function get(string $key, $default = null): callable
10 10
     {
11 11
         if (count(func_get_args()) === 2) {
12
-            return static fn () => $_ENV[$key] ?? $default;
12
+            return static fn() => $_ENV[$key] ?? $default;
13 13
         }
14 14
 
15
-        return static fn () => $_ENV[$key];
15
+        return static fn() => $_ENV[$key];
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,6 +247,6 @@
 block discarded – undo
247 247
      */
248 248
     public static function require(string $config): callable
249 249
     {
250
-        return static fn () => require $config;
250
+        return static fn() => require $config;
251 251
     }
252 252
 }
Please login to merge, or discard this patch.
src/Package/PackageFinder.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * Returns ordered list of packages:
42
-
43 42
      * - Packages listed earlier in the composer.json will get earlier in the list.
44 43
      * - Children are listed before parents.
45 44
      *
Please login to merge, or discard this patch.
src/Config/Params.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public static function pushValues(array $data, array $values, string $prefix = null)
29 29
     {
30 30
         foreach ($data as $key => &$value) {
31
-            $subkey = $prefix===null ? $key : "${prefix}_$key";
31
+            $subkey = $prefix === null ? $key : "${prefix}_$key";
32 32
 
33 33
             $envkey = self::getEnvKey($subkey);
34 34
             if (isset($values[$envkey])) {
Please login to merge, or discard this patch.
src/Reader/PhpReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         $params = $this->builder->getVars()['params'] ?? [];
15 15
 
16
-        $result = static function (array $params) {
16
+        $result = static function(array $params) {
17 17
             return require func_get_arg(1);
18 18
         };
19 19
 
Please login to merge, or discard this patch.
src/Config/Config.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -280,6 +280,4 @@
 block discarded – undo
280 280
 
281 281
     protected function getOutputPath(string $name = null): string
282 282
     {
283
-        return $this->builder->getOutputPath($name ?: $this->name);
284
-    }
285
-}
283
+        return $this->builder->getOutputPath($name ?: $this->name
286 284
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -280,6 +280,4 @@
 block discarded – undo
280 280
 
281 281
     protected function getOutputPath(string $name = null): string
282 282
     {
283
-        return $this->builder->getOutputPath($name ?: $this->name);
284
-    }
285
-}
283
+        return $this->builder->getOutputPath($name ?: $this->name
286 284
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $res = [];
223 223
         foreach ($data as $key => $value) {
224
-            $res[$this->substitutePath($key, $dir)] = $this->substitutePath($value, $dir);
224
+            $res[$this - >substitutePath($key,  $dir)] = $this->substitutePath($value, $dir);
225 225
         }
226 226
 
227 227
         return $res;
@@ -280,6 +280,4 @@  discard block
 block discarded – undo
280 280
 
281 281
     protected function getOutputPath(string $name = null): string
282 282
     {
283
-        return $this->builder->getOutputPath($name ?: $this->name);
284
-    }
285
-}
283
+        return $this->builder->getOutputPath($name ?: $this->name
286 284
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -280,6 +280,4 @@
 block discarded – undo
280 280
 
281 281
     protected function getOutputPath(string $name = null): string
282 282
     {
283
-        return $this->builder->getOutputPath($name ?: $this->name);
284
-    }
285
-}
283
+        return $this->builder->getOutputPath($name ?: $this->name
286 284
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -280,6 +280,4 @@
 block discarded – undo
280 280
 
281 281
     protected function getOutputPath(string $name = null): string
282 282
     {
283
-        return $this->builder->getOutputPath($name ?: $this->name);
284
-    }
285
-}
283
+        return $this->builder->getOutputPath($name ?: $this->name
286 284
\ No newline at end of file
Please login to merge, or discard this patch.
src/Config/Envs.php 5 patches
Indentation   +1 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,21 +20,4 @@
 block discarded – undo
20 20
         return {$envs};
21 21
         PHP;
22 22
 
23
-        $this->contentWriter->write($path, $content . PHP_EOL);
24
-    }
25
-
26
-    protected function envsRequired(): bool
27
-    {
28
-        return false;
29
-    }
30
-
31
-    protected function constantsRequired(): bool
32
-    {
33
-        return false;
34
-    }
35
-
36
-    protected function paramsRequired(): bool
37
-    {
38
-        return false;
39
-    }
40
-}
23
+        $this->contentWriter->write($path, $content
41 24
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,21 +20,4 @@
 block discarded – undo
20 20
         return {$envs};
21 21
         PHP;
22 22
 
23
-        $this->contentWriter->write($path, $content . PHP_EOL);
24
-    }
25
-
26
-    protected function envsRequired(): bool
27
-    {
28
-        return false;
29
-    }
30
-
31
-    protected function constantsRequired(): bool
32
-    {
33
-        return false;
34
-    }
35
-
36
-    protected function paramsRequired(): bool
37
-    {
38
-        return false;
39
-    }
40
-}
23
+        $this->contentWriter->write($path, $content
41 24
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,21 +20,4 @@
 block discarded – undo
20 20
         return {$envs};
21 21
         PHP;
22 22
 
23
-        $this->contentWriter->write($path, $content . PHP_EOL);
24
-    }
25
-
26
-    protected function envsRequired(): bool
27
-    {
28
-        return false;
29
-    }
30
-
31
-    protected function constantsRequired(): bool
32
-    {
33
-        return false;
34
-    }
35
-
36
-    protected function paramsRequired(): bool
37
-    {
38
-        return false;
39
-    }
40
-}
23
+        $this->contentWriter->write($path, $content
41 24
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,21 +20,4 @@
 block discarded – undo
20 20
         return {$envs};
21 21
         PHP;
22 22
 
23
-        $this->contentWriter->write($path, $content . PHP_EOL);
24
-    }
25
-
26
-    protected function envsRequired(): bool
27
-    {
28
-        return false;
29
-    }
30
-
31
-    protected function constantsRequired(): bool
32
-    {
33
-        return false;
34
-    }
35
-
36
-    protected function paramsRequired(): bool
37
-    {
38
-        return false;
39
-    }
40
-}
23
+        $this->contentWriter->write($path, $content
41 24
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,21 +20,4 @@
 block discarded – undo
20 20
         return {$envs};
21 21
         PHP;
22 22
 
23
-        $this->contentWriter->write($path, $content . PHP_EOL);
24
-    }
25
-
26
-    protected function envsRequired(): bool
27
-    {
28
-        return false;
29
-    }
30
-
31
-    protected function constantsRequired(): bool
32
-    {
33
-        return false;
34
-    }
35
-
36
-    protected function paramsRequired(): bool
37
-    {
38
-        return false;
39
-    }
40
-}
23
+        $this->contentWriter->write($path, $content
41 24
\ No newline at end of file
Please login to merge, or discard this patch.