@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function getRootNamespace() |
| 35 | 35 | { |
| 36 | - return parent::getRootNamespace() . |
|
| 36 | + return parent::getRootNamespace(). |
|
| 37 | 37 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function getPath() |
| 56 | 56 | { |
| 57 | - return $this->getBasePath() . |
|
| 58 | - '/' . |
|
| 59 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 60 | - '/' . |
|
| 61 | - $this->getName() . |
|
| 57 | + return $this->getBasePath(). |
|
| 58 | + '/'. |
|
| 59 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 60 | + '/'. |
|
| 61 | + $this->getName(). |
|
| 62 | 62 | '.php'; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | parent::getReplacements(), |
| 84 | 84 | [ |
| 85 | 85 | 'fillable' => $this->getFillable(), |
| 86 | - 'use_base_model' => 'use ' . $this->getRootNamespace() . '\BaseModel;', |
|
| 86 | + 'use_base_model' => 'use '.$this->getRootNamespace().'\BaseModel;', |
|
| 87 | 87 | '_id_name' => $this->getIdName(), |
| 88 | 88 | ] |
| 89 | 89 | ); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function getRootNamespace() |
| 33 | 33 | { |
| 34 | - return parent::getRootNamespace() . |
|
| 34 | + return parent::getRootNamespace(). |
|
| 35 | 35 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function getPath() |
| 54 | 54 | { |
| 55 | - return $this->getBasePath() . |
|
| 56 | - '/' . |
|
| 57 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 58 | - '/' . |
|
| 59 | - $this->getName() . |
|
| 55 | + return $this->getBasePath(). |
|
| 56 | + '/'. |
|
| 57 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 58 | + '/'. |
|
| 59 | + $this->getName(). |
|
| 60 | 60 | 'Request.php'; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | return (new Stub( |
| 96 | - $path . '/Stubs/' . $this->stub . '.stub', |
|
| 96 | + $path.'/Stubs/'.$this->stub.'.stub', |
|
| 97 | 97 | $this->getReplacements() |
| 98 | 98 | ))->render(); |
| 99 | 99 | } |
@@ -304,8 +304,8 @@ discard block |
||
| 304 | 304 | return; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | - return 'namespace ' . |
|
| 308 | - rtrim($rootNamespace . '\\' . implode($segments, '\\'), '\\') . |
|
| 307 | + return 'namespace '. |
|
| 308 | + rtrim($rootNamespace.'\\'.implode($segments, '\\'), '\\'). |
|
| 309 | 309 | ';'; |
| 310 | 310 | } |
| 311 | 311 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | return str_replace( |
| 37 | 37 | '/', |
| 38 | 38 | '\\', |
| 39 | - parent::getRootNamespace() . parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
| 39 | + parent::getRootNamespace().parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function getPath() |
| 59 | 59 | { |
| 60 | - return $this->getBasePath() . |
|
| 61 | - '/' . |
|
| 62 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 63 | - '/' . |
|
| 64 | - $this->getControllerName() . |
|
| 60 | + return $this->getBasePath(). |
|
| 61 | + '/'. |
|
| 62 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 63 | + '/'. |
|
| 64 | + $this->getControllerName(). |
|
| 65 | 65 | 'Controller.php'; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | return str_replace( |
| 35 | 35 | '/', |
| 36 | 36 | '\\', |
| 37 | - parent::getRootNamespace() . parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
| 37 | + parent::getRootNamespace().parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
| 38 | 38 | ); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function getPath() |
| 57 | 57 | { |
| 58 | - return $this->getBasePath() . '/' . |
|
| 58 | + return $this->getBasePath().'/'. |
|
| 59 | 59 | parent::getConfigGeneratorClassPath( |
| 60 | 60 | $this->getPathConfigNode(), |
| 61 | 61 | true |
| 62 | - ) . |
|
| 63 | - '/' . |
|
| 64 | - $this->getControllerName() . 'Controller.php'; |
|
| 62 | + ). |
|
| 63 | + '/'. |
|
| 64 | + $this->getControllerName().'Controller.php'; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -139,12 +139,12 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | $validator = $validatorGenerator->getRootNamespace().'\\'.$validatorGenerator->getName(); |
| 141 | 141 | |
| 142 | - return 'use ' . str_replace( |
|
| 142 | + return 'use '.str_replace( |
|
| 143 | 143 | [ |
| 144 | 144 | '\\', |
| 145 | 145 | '/', |
| 146 | 146 | ] |
| 147 | - , '\\', $validator) . 'Validator;'; |
|
| 147 | + , '\\', $validator).'Validator;'; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -162,11 +162,11 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | $repository = $repositoryGenerator->getRootNamespace().'\\'.$repositoryGenerator->getName(); |
| 164 | 164 | |
| 165 | - return 'use ' . str_replace( |
|
| 165 | + return 'use '.str_replace( |
|
| 166 | 166 | [ |
| 167 | 167 | '\\', |
| 168 | 168 | '/', |
| 169 | 169 | ] |
| 170 | - , '\\', $repository) . 'Repository;'; |
|
| 170 | + , '\\', $repository).'Repository;'; |
|
| 171 | 171 | } |
| 172 | 172 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function getRootNamespace() |
| 36 | 36 | { |
| 37 | - return parent::getRootNamespace() . |
|
| 37 | + return parent::getRootNamespace(). |
|
| 38 | 38 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -55,11 +55,11 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function getPath() |
| 57 | 57 | { |
| 58 | - return $this->getBasePath() . |
|
| 59 | - '/' . |
|
| 60 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 61 | - '/' . |
|
| 62 | - $this->getName() . |
|
| 58 | + return $this->getBasePath(). |
|
| 59 | + '/'. |
|
| 60 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 61 | + '/'. |
|
| 62 | + $this->getName(). |
|
| 63 | 63 | 'Validator.php'; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function getRootNamespace() |
| 33 | 33 | { |
| 34 | - return parent::getRootNamespace() . |
|
| 34 | + return parent::getRootNamespace(). |
|
| 35 | 35 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function getPath() |
| 85 | 85 | { |
| 86 | - return $this->getBasePath() . |
|
| 87 | - '/' . |
|
| 88 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 89 | - '/' . |
|
| 90 | - $this->getName() . |
|
| 86 | + return $this->getBasePath(). |
|
| 87 | + '/'. |
|
| 88 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 89 | + '/'. |
|
| 90 | + $this->getName(). |
|
| 91 | 91 | 'Presenter.php'; |
| 92 | 92 | } |
| 93 | 93 | |