@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | $sourcePath => $viewPath, |
69 | 69 | ], 'views'); |
70 | 70 | |
71 | - $this->loadViewsFrom(array_merge(array_map(function ($path) { |
|
71 | + $this->loadViewsFrom(array_merge(array_map(function($path) { |
|
72 | 72 | return $path.'/modules/user'; |
73 | - }, \Config::get('view.paths')), [$sourcePath]), 'user'); |
|
73 | + }, \Config::get('view.paths')), [ $sourcePath ]), 'user'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -108,6 +108,6 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function provides() |
110 | 110 | { |
111 | - return []; |
|
111 | + return [ ]; |
|
112 | 112 | } |
113 | 113 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | public function scanDirectories(): array |
38 | 38 | { |
39 | - $bootstrap = []; |
|
39 | + $bootstrap = [ ]; |
|
40 | 40 | $modules = \Module::all(); |
41 | 41 | |
42 | 42 | foreach ($modules as $module) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | try { |
55 | 55 | if (new $class() instanceof Command) { |
56 | - $bootstrap['commands'][] = $class; |
|
56 | + $bootstrap[ 'commands' ][ ] = $class; |
|
57 | 57 | } |
58 | 58 | } catch (\Exception $e) { |
59 | 59 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | private function isPhpFile(string $fileName): bool |
70 | 70 | { |
71 | - return strlen($fileName) > 5 && '.php' === ($fileName[-4].$fileName[-3].$fileName[-2].$fileName[-1]); |
|
71 | + return strlen($fileName) > 5 && '.php' === ($fileName[-4 ].$fileName[-3 ].$fileName[-2 ].$fileName[-1 ]); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | private function loadBootstrapFromCache() |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | public function getCommands(): array |
86 | 86 | { |
87 | - return $this->loadBootstrapFromCache()['commands']; |
|
87 | + return $this->loadBootstrapFromCache()[ 'commands' ]; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | public function getCachePath(): string |