Passed
Push — master ( cc610e...66fa06 )
by Henry
03:24
created
src/Console/InstallLaravelVTPass.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         if (Str::contains(file_get_contents($path), "$key") === false) {
55 55
             $this->info("Now writing .env with $key=$value ...");
56 56
             file_put_contents($path, PHP_EOL."$key=$value".PHP_EOL, FILE_APPEND);
57
-        }else{
57
+        } else{
58 58
             $this->info("Now updating $key value in your .env to $value ...");
59 59
             // update existing entry
60 60
             file_put_contents($path, str_replace(
Please login to merge, or discard this patch.
src/Classes/VTPassResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,9 @@
 block discarded – undo
115 115
             }
116 116
         }
117 117
 
118
-        if ($this->hasError)
119
-            throw new VTPassErrorException($this->message, "$code");
118
+        if ($this->hasError) {
119
+                    throw new VTPassErrorException($this->message, "$code");
120
+        }
120 121
 
121 122
     }
122 123
 
Please login to merge, or discard this patch.