@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function getMigrations($reverse = false) |
| 53 | 53 | { |
| 54 | - $files = $this->laravel['files']->glob($this->getPath() . '/*_*.php'); |
|
| 54 | + $files = $this->laravel['files']->glob($this->getPath().'/*_*.php'); |
|
| 55 | 55 | |
| 56 | 56 | // Once we have the array of files in the directory we will just remove the |
| 57 | 57 | // extension and take the basename of the file which is all we need when |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | return array(); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $files = array_map(function ($file) { |
|
| 63 | + $files = array_map(function($file) { |
|
| 64 | 64 | return str_replace('.php', '', basename($file)); |
| 65 | 65 | |
| 66 | 66 | }, $files); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $path = $this->getPath(); |
| 180 | 180 | |
| 181 | 181 | foreach ($files as $file) { |
| 182 | - $this->laravel['files']->requireOnce($path . '/' . $file . '.php'); |
|
| 182 | + $this->laravel['files']->requireOnce($path.'/'.$file.'.php'); |
|
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | |
| 260 | 260 | $result = $query->orderBy('migration', 'desc')->get(); |
| 261 | 261 | |
| 262 | - return collect($result)->map(function ($item) { |
|
| 262 | + return collect($result)->map(function($item) { |
|
| 263 | 263 | return (array) $item; |
| 264 | 264 | })->lists('migration'); |
| 265 | 265 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | 'stubs' => [ |
| 26 | 26 | 'enabled' => false, |
| 27 | - 'path' => base_path() . '/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
| 27 | + 'path' => base_path().'/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
| 28 | 28 | 'files' => [ |
| 29 | 29 | 'start' => 'start.php', |
| 30 | 30 | 'routes' => 'Http/routes.php', |
@@ -42,7 +42,7 @@ |
||
| 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 | } |
@@ -42,7 +42,7 @@ |
||
| 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 | } |
@@ -72,7 +72,7 @@ |
||
| 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 | /** |
@@ -72,7 +72,7 @@ |
||
| 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 | /** |