@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | if ($this->config('scan.enabled')) { |
| 106 | 106 | $paths = array_merge($paths, $this->config('scan.paths')); |
| 107 | 107 | } |
| 108 | - $paths = array_map(function ($path) { |
|
| 108 | + $paths = array_map(function($path) { |
|
| 109 | 109 | return str_finish($path, '/*'); |
| 110 | 110 | }, $paths); |
| 111 | 111 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function getCached() |
| 151 | 151 | { |
| 152 | - return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
| 152 | + return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
| 153 | 153 | return $this->toCollection()->toArray(); |
| 154 | 154 | }); |
| 155 | 155 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | { |
| 238 | 238 | $modules = $this->enabled(); |
| 239 | 239 | |
| 240 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
| 240 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
| 241 | 241 | if ($a->order == $b->order) { |
| 242 | 242 | return 0; |
| 243 | 243 | } |
@@ -387,9 +387,9 @@ discard block |
||
| 387 | 387 | public function getModulePath($module) |
| 388 | 388 | { |
| 389 | 389 | try { |
| 390 | - return $this->findOrFail($module)->getPath() . '/'; |
|
| 390 | + return $this->findOrFail($module)->getPath().'/'; |
|
| 391 | 391 | } catch (ModuleNotFoundException $e) { |
| 392 | - return $this->getPath() . '/' . Str::studly($module) . '/'; |
|
| 392 | + return $this->getPath().'/'.Str::studly($module).'/'; |
|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | */ |
| 403 | 403 | public function assetPath($module) : string |
| 404 | 404 | { |
| 405 | - return $this->config('paths.assets') . '/' . $module; |
|
| 405 | + return $this->config('paths.assets').'/'.$module; |
|
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | /** |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | public function config($key, $default = null) |
| 417 | 417 | { |
| 418 | - return $this->app['config']->get('modules.' . $key, $default); |
|
| 418 | + return $this->app['config']->get('modules.'.$key, $default); |
|
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | /** |
@@ -516,9 +516,9 @@ discard block |
||
| 516 | 516 | } |
| 517 | 517 | list($name, $url) = explode(':', $asset); |
| 518 | 518 | |
| 519 | - $baseUrl = str_replace(public_path() . DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
| 519 | + $baseUrl = str_replace(public_path().DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
| 520 | 520 | |
| 521 | - $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url); |
|
| 521 | + $url = $this->app['url']->asset($baseUrl."/{$name}/".$url); |
|
| 522 | 522 | |
| 523 | 523 | return str_replace(['http://', 'https://'], '//', $url); |
| 524 | 524 | } |
@@ -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 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $name = $module->getName(); |
| 102 | 102 | $config = $module->get('migration'); |
| 103 | 103 | if (is_array($config) && array_key_exists('seeds', $config)) { |
| 104 | - foreach ((array)$config['seeds'] as $class) { |
|
| 104 | + foreach ((array) $config['seeds'] as $class) { |
|
| 105 | 105 | if (class_exists($class)) { |
| 106 | 106 | $seeders[] = $class; |
| 107 | 107 | } |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | $seederPath = GenerateConfigReader::read('seeder'); |
| 157 | 157 | $seederPath = str_replace('/', '\\', $seederPath->getPath()); |
| 158 | 158 | |
| 159 | - return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
| 159 | + return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
| 49 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 49 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
| 50 | 50 | $this->migrateStatus($module); |
| 51 | 51 | } |
| 52 | 52 | } |