Passed
Push — master ( 540a00...a34831 )
by Miroslaw
04:51
created
src/Commands/EnvDelCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@
 block discarded – undo
47 47
         $key = $this->argument('key');
48 48
 
49 49
         if (!is_null($key))
50
-            $this->isValidKey((string)$key);
50
+            $this->isValidKey((string) $key);
51 51
 
52 52
         $env = new Env();
53
-        if (!$env->exists((string)$key))
53
+        if (!$env->exists((string) $key))
54 54
             $this->info("There is no variable {$key}");
55 55
         else
56 56
         {
57
-            $env->deleteVariable((string)$key);
57
+            $env->deleteVariable((string) $key);
58 58
             $this->info("Variable '{$key}' has been deleted");
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Commands/EnvGetCommand.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function handle()
73 73
     {
74
-        $this->key = (string)$this->argument('key');
74
+        $this->key = (string) $this->argument('key');
75 75
 
76 76
         if (strlen($this->key))
77 77
             $this->isValidKey($this->key);
78 78
 
79
-        $this->json = (bool)$this->option('json');
80
-        $this->keyValFormat = (bool)$this->option('key-value');
79
+        $this->json = (bool) $this->option('json');
80
+        $this->keyValFormat = (bool) $this->option('key-value');
81 81
         $this->env = new Env();
82 82
 
83 83
         return $this->_printOutput();
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
             $value = ($this->json) ? json_encode($this->env->getKeyValue($this->key)) : ($this->keyValFormat ? $this->env->getKeyValue($this->key) : $this->env->getValue($this->key));
96 96
 
97 97
             $this->line(($this->json)
98
-                ? (string)$value
99
-                : ($this->keyValFormat ? "{$this->key}={$value[$this->key]}" : (string)$value)
98
+                ? (string) $value
99
+                : ($this->keyValFormat ? "{$this->key}={$value[$this->key]}" : (string) $value)
100 100
             );
101 101
         } else {
102 102
             $this->line("There is no variable '{$this->key}'");
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,9 @@
 block discarded – undo
73 73
     {
74 74
         $this->key = (string)$this->argument('key');
75 75
 
76
-        if (strlen($this->key))
77
-            $this->isValidKey($this->key);
76
+        if (strlen($this->key)) {
77
+                    $this->isValidKey($this->key);
78
+        }
78 79
 
79 80
         $this->json = (bool)$this->option('json');
80 81
         $this->keyValFormat = (bool)$this->option('key-value');
Please login to merge, or discard this patch.