@@ -81,8 +81,9 @@ discard block |
||
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 |
||
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 | } |