@@ -80,8 +80,9 @@ discard block |
||
| 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 |
||
| 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) |