Passed
Push — master ( 58fc63...427199 )
by Richard
10:20 queued 10s
created
src/Commands/ArtomatorControllerCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.