@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @param Module $module |
36 | 36 | * @param Application $application |
37 | 37 | */ |
38 | - public function __construct(Module $module, Application|\Laravel\Lumen\Application $application) |
|
38 | + public function __construct(Module $module, Application | \Laravel\Lumen\Application $application) |
|
39 | 39 | { |
40 | 40 | $this->module = $module; |
41 | 41 | $this->laravel = $application; |
@@ -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 | |
@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | |
203 | 203 | $class = Str::studly($name); |
204 | 204 | |
205 | - if (!class_exists($class) && file_exists($this->getPath() . '/' . $file . '.php') ) { |
|
206 | - return include $this->getPath() . '/' . $file . '.php'; |
|
205 | + if (!class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) { |
|
206 | + return include $this->getPath().'/'.$file.'.php'; |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | return new $class(); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | { |
219 | 219 | $path = $this->getPath(); |
220 | 220 | foreach ($files as $file) { |
221 | - $this->laravel['files']->requireOnce($path . '/' . $file . '.php'); |
|
221 | + $this->laravel['files']->requireOnce($path.'/'.$file.'.php'); |
|
222 | 222 | } |
223 | 223 | } |
224 | 224 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | $result = $query->orderBy('migration', 'desc')->get(); |
303 | 303 | |
304 | - return collect($result)->map(function ($item) { |
|
304 | + return collect($result)->map(function($item) { |
|
305 | 305 | return (array) $item; |
306 | 306 | })->pluck('migration'); |
307 | 307 | } |