@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function getMigrations($reverse = false) |
| 90 | 90 | { |
| 91 | - $files = $this->laravel['files']->glob($this->getPath() . '/*_*.php'); |
|
| 91 | + $files = $this->laravel['files']->glob($this->getPath().'/*_*.php'); |
|
| 92 | 92 | |
| 93 | 93 | // Once we have the array of files in the directory we will just remove the |
| 94 | 94 | // extension and take the basename of the file which is all we need when |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | return []; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - $files = array_map(function ($file) { |
|
| 100 | + $files = array_map(function($file) { |
|
| 101 | 101 | return str_replace('.php', '', basename($file)); |
| 102 | 102 | }, $files); |
| 103 | 103 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | { |
| 215 | 215 | $path = $this->getPath(); |
| 216 | 216 | foreach ($files as $file) { |
| 217 | - $this->laravel['files']->requireOnce($path . '/' . $file . '.php'); |
|
| 217 | + $this->laravel['files']->requireOnce($path.'/'.$file.'.php'); |
|
| 218 | 218 | } |
| 219 | 219 | } |
| 220 | 220 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | |
| 298 | 298 | $result = $query->orderBy('migration', 'desc')->get(); |
| 299 | 299 | |
| 300 | - return collect($result)->map(function ($item) { |
|
| 300 | + return collect($result)->map(function($item) { |
|
| 301 | 301 | return (array) $item; |
| 302 | 302 | })->pluck('migration'); |
| 303 | 303 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
| 50 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 50 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
| 51 | 51 | |
| 52 | 52 | $this->migrate($module); |
| 53 | 53 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $path = str_replace(base_path(), '', (new LumenMigrator($module, $this->getLaravel()))->getPath()); |
| 64 | 64 | |
| 65 | 65 | if ($this->option('subpath')) { |
| 66 | - $path = $path . "/" . $this->option("subpath"); |
|
| 66 | + $path = $path."/".$this->option("subpath"); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $this->call('migrate', [ |