@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ), |
| 71 | 71 | '', static::class |
| 72 | 72 | ); |
| 73 | - $this->id = $this->getModuleId(); |
|
| 73 | + $this->id = $this->getModuleId(); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function register() |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | |
| 269 | 269 | if (is_dir($path)) { |
| 270 | 270 | |
| 271 | - $routes = is_array($files) ? $files : collect(File::glob($path . '/*.php'))->map(function ($file) { |
|
| 271 | + $routes = is_array($files) ? $files : collect(File::glob($path . '/*.php'))->map(function($file) { |
|
| 272 | 272 | return File::name($file); |
| 273 | 273 | })->all(); |
| 274 | 274 | |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $path = $this->getBasePath() . '/' . $this->convention->viewsFolder(); |
| 295 | 295 | $namespace = $this->config('views.namespace', $this->shortName()); |
| 296 | 296 | |
| 297 | - if(is_dir($path)) { |
|
| 297 | + if (is_dir($path)) { |
|
| 298 | 298 | $this->loadViewsFrom($path, $namespace); |
| 299 | 299 | } |
| 300 | 300 | } |
@@ -60,15 +60,15 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $table = []; |
| 62 | 62 | |
| 63 | - $bindings->map(function ($item, $key) { |
|
| 63 | + $bindings->map(function($item, $key) { |
|
| 64 | 64 | return [ |
| 65 | 65 | 'shortName' => substr(strrchr($key, '\\'), 1), |
| 66 | 66 | 'abstract' => $key, |
| 67 | 67 | 'concrete' => $item |
| 68 | 68 | ]; |
| 69 | - })->sort(function ($a, $b) { |
|
| 69 | + })->sort(function($a, $b) { |
|
| 70 | 70 | return $a['shortName'] > $b['shortName']; |
| 71 | - })->each(function ($binding) use (&$table) { |
|
| 71 | + })->each(function($binding) use (&$table) { |
|
| 72 | 72 | $table[] = [ |
| 73 | 73 | $binding['shortName'], |
| 74 | 74 | $binding['abstract'], |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $vendorAndModule = empty($parts[0]) ? array_only($parts, 1) : array_only($parts, 0); |
| 86 | 86 | } else { |
| 87 | 87 | $parts = explode('\\', $classname); |
| 88 | - $vendorAndModule = empty($parts[0]) ? array_only($parts, [1,2]) : array_only($parts, [0,1]); |
|
| 88 | + $vendorAndModule = empty($parts[0]) ? array_only($parts, [1, 2]) : array_only($parts, [0, 1]); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | array_walk($vendorAndModule, function(&$part) { |