Passed
Push — master ( ad5a85...40ce26 )
by Arthur
23:10
created
src/Foundation/Generator/Abstracts/AbstractGeneratorCommand.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,8 +81,9 @@  discard block
 block discarded – undo
81 81
 
82 82
         $this->beforeGeneration();
83 83
 
84
-        if ($this->event === null)
85
-            throw new Exception("No Generator event specified on " . static::class);
84
+        if ($this->event === null) {
85
+                    throw new Exception("No Generator event specified on " . static::class);
86
+        }
86 87
 
87 88
         event(new $this->event($path, $stub));
88 89
         $this->info("Created : {$path}");
@@ -253,7 +254,8 @@  discard block
 block discarded – undo
253 254
     public function __call($method, $parameters)
254 255
     {
255 256
         $key = str_replace('get', '', $method);
256
-        if (array_key_exists(strtolower($method), $this->optionData))
257
-            return $this->optionData[$key];
257
+        if (array_key_exists(strtolower($method), $this->optionData)) {
258
+                    return $this->optionData[$key];
259
+        }
258 260
     }
259 261
 }
Please login to merge, or discard this patch.