Completed
Push — master ( 88bae4...1fc56c )
by Nicolas
06:11
created
src/Commands/ControllerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $controllerPath = $this->laravel['modules']->config('paths.generator.controller');
44 44
 
45
-        return $path . $controllerPath . '/' . $this->getControllerName() . '.php';
45
+        return $path.$controllerPath.'/'.$this->getControllerName().'.php';
46 46
     }
47 47
 
48 48
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $controller = studly_case($this->argument('controller'));
88 88
 
89 89
         if (!str_contains(strtolower($controller), 'controller')) {
90
-            $controller = $controller . 'Controller';
90
+            $controller = $controller.'Controller';
91 91
         }
92 92
 
93 93
         return $controller;
Please login to merge, or discard this patch.
src/Commands/GeneratorCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
 
87 87
         $namespace = $this->laravel['modules']->config('namespace');
88 88
 
89
-        $namespace .= '\\' . $module->getStudlyName();
89
+        $namespace .= '\\'.$module->getStudlyName();
90 90
 
91
-        $namespace .= '\\' . $this->getDefaultNamespace();
91
+        $namespace .= '\\'.$this->getDefaultNamespace();
92 92
 
93
-        $namespace .= '\\' . $extra;
93
+        $namespace .= '\\'.$extra;
94 94
 
95 95
         return rtrim($namespace, '\\');
96 96
     }
Please login to merge, or discard this patch.
src/Commands/MigrationCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $generatorPath = $this->laravel['modules']->config('paths.generator.migration');
115 115
 
116
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
116
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
117 117
     }
118 118
 
119 119
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function getFileName()
123 123
     {
124
-        return date('Y_m_d_His_') . $this->getSchemaName();
124
+        return date('Y_m_d_His_').$this->getSchemaName();
125 125
     }
126 126
 
127 127
     /**
Please login to merge, or discard this patch.
src/Commands/ModelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 
87 87
         $seederPath = $this->laravel['modules']->config('paths.generator.model');
88 88
 
89
-        return $path . $seederPath . '/' . $this->getModelName() . '.php';
89
+        return $path.$seederPath.'/'.$this->getModelName().'.php';
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.
src/Commands/MigrateResetCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         foreach (array_reverse($this->laravel['modules']->all()) as $module) {
45
-            $this->line('Running for module: <info>' . $module->getName() . '</info>');
45
+            $this->line('Running for module: <info>'.$module->getName().'</info>');
46 46
 
47 47
             $this->reset($module);
48 48
         }
Please login to merge, or discard this patch.
src/Commands/SeedMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $seederPath = $this->laravel['modules']->config('paths.generator.seeder');
83 83
 
84
-        return $path . $seederPath . '/' . $this->getSeederName() . '.php';
84
+        return $path.$seederPath.'/'.$this->getSeederName().'.php';
85 85
     }
86 86
 
87 87
     /**
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $end = $this->option('master') ? 'DatabaseSeeder' : 'TableSeeder';
95 95
 
96
-        return Str::studly($this->argument('name')) . $end;
96
+        return Str::studly($this->argument('name')).$end;
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
src/Commands/GenerateMiddlewareCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         $seederPath = $this->laravel['modules']->config('paths.generator.filter');
74 74
 
75
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
75
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Commands/SeedCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 
99 99
         $namespace = $this->laravel['modules']->config('namespace');
100 100
 
101
-        return $namespace . '\\' . $name . '\Database\Seeders\\' . $name . 'DatabaseSeeder';
101
+        return $namespace.'\\'.$name.'\Database\Seeders\\'.$name.'DatabaseSeeder';
102 102
     }
103 103
 
104 104
     /**
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $paths = $this->paths;
97 97
 
98
-        $paths[] = $this->getPath() . '/*';
98
+        $paths[] = $this->getPath().'/*';
99 99
 
100 100
         if ($this->config('scan.enabled')) {
101 101
             $paths = array_merge($paths, $this->config('scan.paths'));
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $modules = [];
159 159
 
160 160
         foreach ($cached as $name => $module) {
161
-            $path = $this->config('paths.modules') . '/' . $name;
161
+            $path = $this->config('paths.modules').'/'.$name;
162 162
 
163 163
             $lowerName = strtolower($name);
164 164
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function getCached()
177 177
     {
178
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
178
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
179 179
             return $this->toCollection()->toArray();
180 180
         });
181 181
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $modules = $this->enabled();
265 265
 
266
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
266
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
267 267
             if ($a->order == $b->order) {
268 268
                 return 0;
269 269
             }
@@ -374,9 +374,9 @@  discard block
 block discarded – undo
374 374
     public function getModulePath($module)
375 375
     {
376 376
         try {
377
-            return $this->findOrFail($module)->getPath() . '/';
377
+            return $this->findOrFail($module)->getPath().'/';
378 378
         } catch (ModuleNotFoundException $e) {
379
-            return $this->getPath() . '/' . Str::studly($module) . '/';
379
+            return $this->getPath().'/'.Str::studly($module).'/';
380 380
         }
381 381
     }
382 382
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      */
390 390
     public function assetPath($module)
391 391
     {
392
-        return $this->config('paths.assets') . '/' . $module;
392
+        return $this->config('paths.assets').'/'.$module;
393 393
     }
394 394
 
395 395
     /**
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
      */
402 402
     public function config($key)
403 403
     {
404
-        return $this->app['config']->get('modules.' . $key);
404
+        return $this->app['config']->get('modules.'.$key);
405 405
     }
406 406
 
407 407
     /**
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
             $this->app['files']->makeDirectory($path, 0777, true);
416 416
         }
417 417
 
418
-        return $path . '/modules.used';
418
+        return $path.'/modules.used';
419 419
     }
420 420
 
421 421
     /**
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 
486 486
         $baseUrl = str_replace(public_path(), '', $this->getAssetsPath());
487 487
 
488
-        $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url);
488
+        $url = $this->app['url']->asset($baseUrl."/{$name}/".$url);
489 489
 
490 490
         return str_replace(['http://', 'https://'], '//', $url);
491 491
     }
Please login to merge, or discard this patch.