@@ -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 | } |
@@ -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 | { |
@@ -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 | /** |
@@ -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 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | $factoryPath = GenerateConfigReader::read('factory'); |
65 | 65 | |
66 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
66 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -71,6 +71,6 @@ discard block |
||
71 | 71 | */ |
72 | 72 | private function getFileName() |
73 | 73 | { |
74 | - return Str::studly($this->argument('name')) . '.php'; |
|
74 | + return Str::studly($this->argument('name')).'.php'; |
|
75 | 75 | } |
76 | 76 | } |
@@ -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 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $middlewarePath = GenerateConfigReader::read('filter'); |
80 | 80 | |
81 | - return $path . $middlewarePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$middlewarePath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -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 | { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | $policyPath = GenerateConfigReader::read('policies'); |
78 | 78 | |
79 | - return $path . $policyPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
79 | + return $path.$policyPath->getPath().'/'.$this->getFileName().'.php'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -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 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
80 | 80 | |
81 | - return (new Stub('/' . $stub . '.stub', [ |
|
81 | + return (new Stub('/'.$stub.'.stub', [ |
|
82 | 82 | 'NAMESPACE' => $this->getClassNamespace($module), |
83 | 83 | 'CLASS' => $this->getClass(), |
84 | 84 | 'LOWER_NAME' => $module->getLowerName(), |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | $generatorPath = GenerateConfigReader::read('provider'); |
105 | 105 | |
106 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
106 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -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 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $requestPath = GenerateConfigReader::read('request'); |
80 | 80 | |
81 | - return $path . $requestPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$requestPath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -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 | { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | $rulePath = GenerateConfigReader::read('rules'); |
78 | 78 | |
79 | - return $path . $rulePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
79 | + return $path.$rulePath->getPath().'/'.$this->getFileName().'.php'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |