@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function setupStubPath() |
| 32 | 32 | { |
| 33 | - Stub::setBasePath(__DIR__ . '/Commands/stubs'); |
|
| 33 | + Stub::setBasePath(__DIR__.'/Commands/stubs'); |
|
| 34 | 34 | |
| 35 | 35 | if (app('modules')->config('stubs.enabled') === true) { |
| 36 | 36 | Stub::setBasePath(app('modules')->config('stubs.path')); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected function registerServices() |
| 44 | 44 | { |
| 45 | - $this->app->singleton('modules', function ($app) { |
|
| 45 | + $this->app->singleton('modules', function($app) { |
|
| 46 | 46 | $path = $app['config']->get('modules.paths.modules'); |
| 47 | 47 | |
| 48 | 48 | return new \Nwidart\Modules\Lumen\Repository($app, $path); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | protected function registerNamespaces() |
| 45 | 45 | { |
| 46 | - $configPath = __DIR__ . '/../config/config.php'; |
|
| 46 | + $configPath = __DIR__.'/../config/config.php'; |
|
| 47 | 47 | |
| 48 | 48 | $this->mergeConfigFrom($configPath, 'modules'); |
| 49 | 49 | $this->publishes([ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $modules = []; |
| 40 | 40 | |
| 41 | 41 | foreach ($cached as $name => $module) { |
| 42 | - $path = $this->config('paths.modules') . '/' . $name; |
|
| 42 | + $path = $this->config('paths.modules').'/'.$name; |
|
| 43 | 43 | |
| 44 | 44 | $modules[$name] = new Module($this->app, $name, $path); |
| 45 | 45 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | $controllerPath = $this->laravel['modules']->config('paths.generator.controller'); |
| 45 | 45 | |
| 46 | - return $path . $controllerPath . '/' . $this->getControllerName() . '.php'; |
|
| 46 | + return $path.$controllerPath.'/'.$this->getControllerName().'.php'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | $seederPath = $this->laravel['modules']->config('paths.generator.command'); |
| 83 | 83 | |
| 84 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
| 84 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $factoryPath = $this->laravel['modules']->config('paths.generator.factory', 'Database/factories'); |
| 64 | 64 | |
| 65 | - return $path . $factoryPath . '/' . $this->getFileName(); |
|
| 65 | + return $path.$factoryPath.'/'.$this->getFileName(); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -70,6 +70,6 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | private function getFileName() |
| 72 | 72 | { |
| 73 | - return Str::studly($this->argument('name')) . '.php'; |
|
| 73 | + return Str::studly($this->argument('name')).'.php'; |
|
| 74 | 74 | } |
| 75 | 75 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | $seederPath = $this->laravel['modules']->config('paths.generator.filter'); |
| 74 | 74 | |
| 75 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
| 75 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | $policyPath = $this->laravel['modules']->config('paths.generator.policies'); |
| 69 | 69 | |
| 70 | - return $path . $policyPath . '/' . $this->getFileName() . '.php'; |
|
| 70 | + return $path.$policyPath.'/'.$this->getFileName().'.php'; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
| 69 | 69 | |
| 70 | - return (new Stub('/' . $stub . '.stub', [ |
|
| 70 | + return (new Stub('/'.$stub.'.stub', [ |
|
| 71 | 71 | 'NAMESPACE' => $this->getClassNamespace($module), |
| 72 | 72 | 'CLASS' => $this->getClass(), |
| 73 | 73 | 'LOWER_NAME' => $module->getLowerName(), |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $generatorPath = $this->laravel['modules']->config('paths.generator.provider'); |
| 92 | 92 | |
| 93 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
| 93 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |