@@ -34,18 +34,18 @@ |
||
34 | 34 | $eventPath = GenerateConfigReader::read('event'); |
35 | 35 | |
36 | 36 | return (new Stub('/event.stub', [ |
37 | - 'NAMESPACE' => $this->getClassNamespace($module) . "\\" . $eventPath->getPath(), |
|
37 | + 'NAMESPACE' => $this->getClassNamespace($module)."\\".$eventPath->getPath(), |
|
38 | 38 | "CLASS" => $this->getClass(), |
39 | 39 | ]))->render(); |
40 | 40 | } |
41 | 41 | |
42 | 42 | public function getDestinationFilePath() |
43 | 43 | { |
44 | - $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
44 | + $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
45 | 45 | |
46 | 46 | $eventPath = GenerateConfigReader::read('event'); |
47 | 47 | |
48 | - return $path . $eventPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
48 | + return $path.$eventPath->getPath().'/'.$this->getFileName().'.php'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | $commandPath = GenerateConfigReader::read('command'); |
102 | 102 | |
103 | - return $path . $commandPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
103 | + return $path.$commandPath->getPath().'/'.$this->getFileName().'.php'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -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 | } |