@@ -26,14 +26,14 @@ |
||
26 | 26 | |
27 | 27 | protected function getStub(): string |
28 | 28 | { |
29 | - $stubPath = __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR; |
|
29 | + $stubPath = __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR; |
|
30 | 30 | |
31 | - return $stubPath . 'validate.stub'; |
|
31 | + return $stubPath.'validate.stub'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | protected function getNamespace(string $app): string |
35 | 35 | { |
36 | - return parent::getNamespace($app) . '\\validate'; |
|
36 | + return parent::getNamespace($app).'\\validate'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $commandName = $this->input->getArgument('commandName') ?: strtolower(basename($name)); |
32 | 32 | $namespace = trim(implode('\\', array_slice(explode('\\', $name), 0, -1)), '\\'); |
33 | 33 | |
34 | - $class = str_replace($namespace . '\\', '', $name); |
|
34 | + $class = str_replace($namespace.'\\', '', $name); |
|
35 | 35 | $stub = file_get_contents($this->getStub()); |
36 | 36 | |
37 | 37 | return str_replace(['{%commandName%}', '{%className%}', '{%namespace%}', '{%app_namespace%}'], [ |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | |
45 | 45 | protected function getStub(): string |
46 | 46 | { |
47 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'command.stub'; |
|
47 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'command.stub'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function getNamespace(string $app): string |
51 | 51 | { |
52 | - return parent::getNamespace($app) . '\\command'; |
|
52 | + return parent::getNamespace($app).'\\command'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
@@ -25,11 +25,11 @@ |
||
25 | 25 | |
26 | 26 | protected function getStub(): string |
27 | 27 | { |
28 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'listener.stub'; |
|
28 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'listener.stub'; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | protected function getNamespace(string $app): string |
32 | 32 | { |
33 | - return parent::getNamespace($app) . '\\listener'; |
|
33 | + return parent::getNamespace($app).'\\listener'; |
|
34 | 34 | } |
35 | 35 | } |
@@ -26,11 +26,11 @@ |
||
26 | 26 | |
27 | 27 | protected function getStub(): string |
28 | 28 | { |
29 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'model.stub'; |
|
29 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'model.stub'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function getNamespace(string $app): string |
33 | 33 | { |
34 | - return parent::getNamespace($app) . '\\model'; |
|
34 | + return parent::getNamespace($app).'\\model'; |
|
35 | 35 | } |
36 | 36 | } |
@@ -26,11 +26,11 @@ |
||
26 | 26 | |
27 | 27 | protected function getStub(): string |
28 | 28 | { |
29 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'service.stub'; |
|
29 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'service.stub'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function getNamespace(string $app): string |
33 | 33 | { |
34 | - return parent::getNamespace($app) . '\\service'; |
|
34 | + return parent::getNamespace($app).'\\service'; |
|
35 | 35 | } |
36 | 36 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | protected function getStub(): string |
28 | 28 | { |
29 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'middleware.stub'; |
|
29 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'middleware.stub'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function getNamespace(string $app): string |
@@ -25,11 +25,11 @@ |
||
25 | 25 | |
26 | 26 | protected function getStub(): string |
27 | 27 | { |
28 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'subscribe.stub'; |
|
28 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'subscribe.stub'; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | protected function getNamespace(string $app): string |
32 | 32 | { |
33 | - return parent::getNamespace($app) . '\\subscribe'; |
|
33 | + return parent::getNamespace($app).'\\subscribe'; |
|
34 | 34 | } |
35 | 35 | } |
@@ -25,11 +25,11 @@ |
||
25 | 25 | |
26 | 26 | protected function getStub(): string |
27 | 27 | { |
28 | - return __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'event.stub'; |
|
28 | + return __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'event.stub'; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | protected function getNamespace(string $app): string |
32 | 32 | { |
33 | - return parent::getNamespace($app) . '\\event'; |
|
33 | + return parent::getNamespace($app).'\\event'; |
|
34 | 34 | } |
35 | 35 | } |
@@ -30,27 +30,27 @@ |
||
30 | 30 | |
31 | 31 | protected function getStub(): string |
32 | 32 | { |
33 | - $stubPath = __DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR; |
|
33 | + $stubPath = __DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR; |
|
34 | 34 | |
35 | 35 | if ($this->input->getOption('api')) { |
36 | - return $stubPath . 'controller.api.stub'; |
|
36 | + return $stubPath.'controller.api.stub'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | if ($this->input->getOption('plain')) { |
40 | - return $stubPath . 'controller.plain.stub'; |
|
40 | + return $stubPath.'controller.plain.stub'; |
|
41 | 41 | } |
42 | 42 | |
43 | - return $stubPath . 'controller.stub'; |
|
43 | + return $stubPath.'controller.stub'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | protected function getClassName(string $name): string |
47 | 47 | { |
48 | - return parent::getClassName($name) . ($this->app->config->get('route.controller_suffix') ? 'Controller' : ''); |
|
48 | + return parent::getClassName($name).($this->app->config->get('route.controller_suffix') ? 'Controller' : ''); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | protected function getNamespace(string $app): string |
52 | 52 | { |
53 | - return parent::getNamespace($app) . '\\controller'; |
|
53 | + return parent::getNamespace($app).'\\controller'; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | } |