@@ -53,12 +53,12 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function getPath() |
| 55 | 55 | { |
| 56 | - return $this->getBasePath() . |
|
| 57 | - '/Providers/' . |
|
| 56 | + return $this->getBasePath(). |
|
| 57 | + '/Providers/'. |
|
| 58 | 58 | parent::getConfigGeneratorClassPath( |
| 59 | 59 | $this->getPathConfigNode(), |
| 60 | 60 | true |
| 61 | - ) . |
|
| 61 | + ). |
|
| 62 | 62 | '.php'; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $this->call( |
| 56 | 56 | 'yl:request', |
| 57 | 57 | [ |
| 58 | - 'name' => $this->argument('name') . 'Create', |
|
| 58 | + 'name' => $this->argument('name').'Create', |
|
| 59 | 59 | '--type' => 'web', |
| 60 | 60 | '--fields' => $this->option('fields'), |
| 61 | 61 | '--force' => $this->option('force'), |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $this->call( |
| 66 | 66 | 'yl:request', |
| 67 | 67 | [ |
| 68 | - 'name' => $this->argument('name') . 'Update', |
|
| 68 | + 'name' => $this->argument('name').'Update', |
|
| 69 | 69 | '--type' => 'web', |
| 70 | 70 | '--fields' => $this->option('fields'), |
| 71 | 71 | '--force' => $this->option('force'), |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | $this->generators->push( |
| 67 | 67 | new MigrationGenerator( |
| 68 | 68 | [ |
| 69 | - 'name' => 'create_' . snake_case(str_plural($this->argument('name'))) . '_table', |
|
| 69 | + 'name' => 'create_'.snake_case(str_plural($this->argument('name'))).'_table', |
|
| 70 | 70 | 'fields' => $this->option('fillable'), |
| 71 | 71 | 'force' => $this->option('force'), |
| 72 | 72 | ] |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $this->call( |
| 56 | 56 | 'yl:request', |
| 57 | 57 | [ |
| 58 | - 'name' => 'Api/' . $this->argument('name') . 'Create', |
|
| 58 | + 'name' => 'Api/'.$this->argument('name').'Create', |
|
| 59 | 59 | '--type' => 'api', |
| 60 | 60 | '--fields' => $this->option('fields'), |
| 61 | 61 | '--force' => $this->option('force'), |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $this->call( |
| 66 | 66 | 'yl:request', |
| 67 | 67 | [ |
| 68 | - 'name' => 'Api/' . $this->argument('name') . 'Update', |
|
| 68 | + 'name' => 'Api/'.$this->argument('name').'Update', |
|
| 69 | 69 | '--type' => 'api', |
| 70 | 70 | '--fields' => $this->option('fields'), |
| 71 | 71 | '--force' => $this->option('force'), |
@@ -65,11 +65,11 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | public function getPath() |
| 67 | 67 | { |
| 68 | - return $this->getBasePath() . |
|
| 69 | - '/' . |
|
| 70 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
| 71 | - '/' . |
|
| 72 | - $this->getName() . |
|
| 68 | + return $this->getBasePath(). |
|
| 69 | + '/'. |
|
| 70 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
| 71 | + '/'. |
|
| 72 | + $this->getName(). |
|
| 73 | 73 | '/'; |
| 74 | 74 | } |
| 75 | 75 | |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | $contents = file_get_contents($this->getPath()); |
| 128 | 128 | foreach ($this->replaces as $search => $replace) { |
| 129 | 129 | $contents = str_replace( |
| 130 | - '$' . strtoupper($search) . '$', |
|
| 130 | + '$'.strtoupper($search).'$', |
|
| 131 | 131 | $replace, |
| 132 | 132 | $contents |
| 133 | 133 | ); |
@@ -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 | |