Completed
Pull Request — master (#4)
by
unknown
06:08
created
src/Config/Environment/EnvironmentNode.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,6 @@
 block discarded – undo
88 88
     /**
89 89
      * Get entry
90 90
      *
91
-     * @param  string $key
92 91
      * @return mixed
93 92
      */
94 93
     public function __get($name)
Please login to merge, or discard this patch.
src/Config/Environment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $raw = [];
74 74
         foreach ($nodes as $entry) {
75 75
             if ($entry->value) {
76
-                $raw[$this->getEnvironmentPrefix() . $entry->getFullKey()] = $entry->value;
76
+                $raw[$this->getEnvironmentPrefix().$entry->getFullKey()] = $entry->value;
77 77
             }
78 78
             $raw = array_merge($raw, $this->getRawRecursive($entry->children));
79 79
         }
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
     public function merge($config): ConfigInterface
102 102
     {
103 103
         if (!$config instanceof Environment) {
104
-            throw new Exception('not able to merge objects of other types than ' . static::class);
104
+            throw new Exception('not able to merge objects of other types than '.static::class);
105 105
         }
106 106
         $raw = $this->getRaw();
107 107
 
108 108
         // ensure right env is set on variables
109 109
         foreach ($config->getRaw() as $key => $value) {
110
-            $key = $this->getEnvironmentPrefix() . $config->removeEnvironmentPrefix($key);
110
+            $key = $this->getEnvironmentPrefix().$config->removeEnvironmentPrefix($key);
111 111
             $raw[$key] = $value;
112 112
         }
113 113
         $this->store = $this->parseEnvironmentVars($raw);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     protected function parseEnvironmentVars(array $environmentVars)
145 145
     {
146 146
         // only parse environment variables with valid names
147
-        $environmentVars = array_filter($environmentVars, function ($value, $key) {
147
+        $environmentVars = array_filter($environmentVars, function($value, $key) {
148 148
             return $this->isValidEnvironmentVariable($key);
149 149
         }, ARRAY_FILTER_USE_BOTH);
150 150
         // transform to tree
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     protected function getEnvironmentPrefix(): string
187 187
     {
188
-        return $this->environment . self::DELIMITER;
188
+        return $this->environment.self::DELIMITER;
189 189
     }
190 190
 
191 191
     /**
Please login to merge, or discard this patch.