@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | protected function getDefaultNamespace($rootNamespace) |
67 | 67 | { |
68 | - return $rootNamespace.'\Http\Controllers'; |
|
68 | + return $rootNamespace . '\Http\Controllers'; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $modelClass = $this->parseModel((string) $this->option('model')); |
151 | 151 | $requestClass = $this->parseRequest((string) $this->option('model')); |
152 | 152 | |
153 | - if (! class_exists($modelClass)) { |
|
153 | + if (!class_exists($modelClass)) { |
|
154 | 154 | if ($this->confirm("A {$modelClass} model does not exist. Do you want to generate it?", true)) { |
155 | 155 | $this->call('make:model', ['name' => $modelClass]); |
156 | 156 | } |
@@ -221,8 +221,8 @@ discard block |
||
221 | 221 | |
222 | 222 | $model = trim(str_replace('/', '\\', $model), '\\'); |
223 | 223 | |
224 | - if (! Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) { |
|
225 | - $model = $rootNamespace.'Models\\'.$model; |
|
224 | + if (!Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) { |
|
225 | + $model = $rootNamespace . 'Models\\' . $model; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | return $model; |
@@ -246,8 +246,8 @@ discard block |
||
246 | 246 | |
247 | 247 | $model = trim(str_replace('/', '\\', $model), '\\'); |
248 | 248 | |
249 | - if (! Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) { |
|
250 | - $model = $rootNamespace.'Http\\Requests\\'.$model; |
|
249 | + if (!Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) { |
|
250 | + $model = $rootNamespace . 'Http\\Requests\\' . $model; |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | return $model; |