Passed
Push — master ( bcb410...58fc63 )
by
unknown
03:06
created
src/ArtomatorServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function register()
33 33
     {
34
-        $this->mergeConfigFrom(__DIR__.'/../config/artomator.php', 'artomator');
34
+        $this->mergeConfigFrom(__DIR__ . '/../config/artomator.php', 'artomator');
35 35
 
36 36
         // Register the service the package provides.
37
-        $this->app->singleton('artomator', function () {
37
+        $this->app->singleton('artomator', function() {
38 38
             return new Artomator;
39 39
         });
40 40
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         // Publishing the configuration file.
60 60
         $this->publishes([
61
-            __DIR__.'/../config/artomator.php' => config_path('artomator.php'),
61
+            __DIR__ . '/../config/artomator.php' => config_path('artomator.php'),
62 62
         ], 'artomator.config');
63 63
 
64 64
         // Publishing the views.
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         // Publishing stubs.
70 70
         $this->publishes([
71
-            __DIR__.'/Commands/stubs' => public_path('vendor/pwweb'),
71
+            __DIR__ . '/Commands/stubs' => public_path('vendor/pwweb'),
72 72
         ], 'artomator.stubs');
73 73
 
74 74
         // Publishing assets.
Please login to merge, or discard this patch.
src/Commands/ArtomatorControllerCommand.php 1 patch
Spacing   +4 added lines, -4 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
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         $modelClass = $this->parseModel((string) $this->option('model'));
151 151
 
152
-        if (! class_exists($modelClass)) {
152
+        if (!class_exists($modelClass)) {
153 153
             if ($this->confirm("A {$modelClass} model does not exist. Do you want to generate it?", true)) {
154 154
                 $this->call('make:model', ['name' => $modelClass]);
155 155
             }
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
 
220 220
         $model = trim(str_replace('/', '\\', $model), '\\');
221 221
 
222
-        if (! Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) {
223
-            $model = $rootNamespace.'Models\\'.$model;
222
+        if (!Str::startsWith($model, $rootNamespace = $this->laravel->getNamespace())) {
223
+            $model = $rootNamespace . 'Models\\' . $model;
224 224
         }
225 225
 
226 226
         return $model;
Please login to merge, or discard this patch.