Passed
Pull Request — master (#3)
by Miroslaw
03:29
created
src/Env.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
         foreach ($env_lines as $line)
29 29
         {
30 30
             if (strlen(trim($line)) && !(strpos(trim($line), '#') === 0)) {
31
-                [$key, $val] = explode('=', (string)$line);
31
+                [$key, $val] = explode('=', (string) $line);
32 32
                 $this->_envVars[$key] = $this->_stripValue($val);
33 33
             }
34 34
         }
Please login to merge, or discard this patch.
src/Commands/EnvSetCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $value = $this->argument('value');
72 72
 
73 73
         if (is_null($value) || !$value) {
74
-            $parts = explode('=', (string)$key, 2);
74
+            $parts = explode('=', (string) $key, 2);
75 75
 
76 76
             if (count($parts) !== 2) {
77 77
                 throw new InvalidArgumentException('No value was set');
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
             [$key, $value] = $parts;
81 81
         }
82 82
 
83
-        if (Str::contains((string)$key, '=')) {
83
+        if (Str::contains((string) $key, '=')) {
84 84
             throw new InvalidArgumentException("Environment key should not contain '='");
85 85
         }
86 86
 
87
-        if (!$this->isValidKey((string)$key)) {
87
+        if (!$this->isValidKey((string) $key)) {
88 88
             throw new InvalidArgumentException('Invalid argument key');
89 89
         }
90 90
 
91
-        return [(string)$key, (string)$value];
91
+        return [(string) $key, (string) $value];
92 92
     }
93 93
 
94 94
 }
Please login to merge, or discard this patch.