Passed
Push — master ( 40ce26...965fb6 )
by Arthur
22:04
created
src/Foundation/Generator/Abstracts/AbstractGeneratorCommand.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,8 +80,9 @@  discard block
 block discarded – undo
80 80
 
81 81
         $this->beforeGeneration();
82 82
 
83
-        if ($this->event === null)
84
-            throw new Exception("No Generator event specified on " . static::class);
83
+        if ($this->event === null) {
84
+                    throw new Exception("No Generator event specified on " . static::class);
85
+        }
85 86
 
86 87
         event(new $this->event($path, $stub));
87 88
         $this->info("Created : {$path}");
@@ -261,8 +262,9 @@  discard block
 block discarded – undo
261 262
     public function __call($method, $parameters)
262 263
     {
263 264
         $key = str_replace('get', '', $method);
264
-        if (array_key_exists(strtolower($method), $this->optionData))
265
-            return $this->optionData[$key];
265
+        if (array_key_exists(strtolower($method), $this->optionData)) {
266
+                    return $this->optionData[$key];
267
+        }
266 268
     }
267 269
 
268 270
     protected function handleOverwriteOption($shortcut, $type, $question, $default)
Please login to merge, or discard this patch.