Passed
Push — master ( c423ac...6bd0a6 )
by Enjoys
10:06
created
src/Config.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
     public function addConfig($params, array $options = [], string $parseClass = self::INI, bool $replace = true): void
44 44
     {
45
-        $params = (array)$params;
45
+        $params = (array) $params;
46 46
 
47 47
         if (!class_exists($parseClass)) {
48 48
             throw new \Exception(sprintf('Not found parse class: %s', $parseClass));
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
                 }
95 95
                 if ($replace === true) {
96 96
                     $this->config[$namespace] = \array_merge_recursive_distinct(
97
-                        (array)$this->config[$namespace],
97
+                        (array) $this->config[$namespace],
98 98
                         $result
99 99
                     );
100 100
                 } else {
101 101
                     $this->config[$namespace] = \array_merge_recursive_distinct(
102 102
                         $result,
103
-                        (array)$this->config[$namespace]
103
+                        (array) $this->config[$namespace]
104 104
                     );
105 105
                 }
106 106
             }
Please login to merge, or discard this patch.
src/ValueHandler/DefinedConstantsValueHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         return preg_replace_callback(
20 20
             '/(%)(.+)(%)/',
21
-            function ($matches) {
21
+            function($matches) {
22 22
                 if (\defined($matches[2])) {
23 23
                     return constant($matches[2]);
24 24
                 }
25
-                return $matches[1] . $matches[2] . $matches[3];
25
+                return $matches[1].$matches[2].$matches[3];
26 26
             },
27 27
             $input
28 28
         );
Please login to merge, or discard this patch.
src/ValueHandler/EnvValueHandler.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 final class EnvValueHandler implements ValueHandlerInterface
12 12
 {
13 13
     /**
14
-
15 14
      * @psalm-suppress InvalidArrayOffset, MixedArgumentTypeCoercion
16 15
      */
17 16
     public function handle(string $input): string
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 
20 20
         return preg_replace_callback(
21 21
             '/(%)([A-Z_]+)(%)/',
22
-            function (array $matches) {
22
+            function(array $matches) {
23 23
                 return
24 24
                     $_ENV[$matches[2]]
25 25
                     ?? $_SERVER[$matches[2]]
26
-                    ?? (getenv($matches[2]) ?: $matches[1] . $matches[2] . $matches[3]);
26
+                    ?? (getenv($matches[2]) ?: $matches[1].$matches[2].$matches[3]);
27 27
             },
28 28
             $input
29 29
         );
Please login to merge, or discard this patch.
src/Parse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         foreach ($this->valueHandlers as $valueHandler) {
69 69
             $data = (new $valueHandler())->handle($data);
70 70
         }
71
-      //  var_dump($data);
71
+        //  var_dump($data);
72 72
         return $data;
73 73
     }
74 74
 
Please login to merge, or discard this patch.
src/Parse/YAML.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function parseString(string $input)
22 22
     {
23 23
         try {
24
-            return Symfony\Yaml::parse($input, (int)$this->getOption('flags', 0));
24
+            return Symfony\Yaml::parse($input, (int) $this->getOption('flags', 0));
25 25
         } catch (Symfony\Exception\ParseException $e) {
26 26
             $this->logger->error($e->getMessage());
27 27
             return null;
Please login to merge, or discard this patch.