@@ -14,7 +14,7 @@ |
||
14 | 14 | $name = str_replace($this->laravel->getNamespace(), '', $name); |
15 | 15 | |
16 | 16 | // Add the class type to the file name. |
17 | - return $this->laravel['path'].'/'.str_replace('\\', '/', $name).$this->type.'.php'; |
|
17 | + return $this->laravel['path'] . '/' . str_replace('\\', '/', $name) . $this->type . '.php'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | protected function getStub() |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $this->call('hive:instance', ['name' => $name, '-e' => 'bar', '-m' => 'bar']); |
19 | 19 | $this->call('hive:factory', ['name' => $name, '-i' => 'bar']); |
20 | 20 | $this->call('hive:repo', ['name' => $name, '-o' => 'bar']); |
21 | - $this->call('hive:mutator', ['name' => $name.'Request', '-r' => 'bar']); |
|
21 | + $this->call('hive:mutator', ['name' => $name . 'Request', '-r' => 'bar']); |
|
22 | 22 | $this->call('hive:controller', ['name' => $name]); |
23 | 23 | } |
24 | 24 |
@@ -53,9 +53,9 @@ |
||
53 | 53 | protected function getStub() |
54 | 54 | { |
55 | 55 | if ($this->option('eloquent')) { |
56 | - return __DIR__.'/stubs/instance-eloquent.stub'; |
|
56 | + return __DIR__ . '/stubs/instance-eloquent.stub'; |
|
57 | 57 | } else { |
58 | - return __DIR__.'/stubs/instance-no-eloquent.stub'; |
|
58 | + return __DIR__ . '/stubs/instance-no-eloquent.stub'; |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getStub() |
44 | 44 | { |
45 | - return __DIR__.'/stubs/validator.stub'; |
|
45 | + return __DIR__ . '/stubs/validator.stub'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function getDefaultNamespace($rootNamespace) |
56 | 56 | { |
57 | - return $rootNamespace.'\Lib\Data'; |
|
57 | + return $rootNamespace . '\Lib\Data'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | protected function getStub() |
46 | 46 | { |
47 | 47 | if ($this->option('observatory')) { |
48 | - return __DIR__.'/stubs/repo-observatory.stub'; |
|
48 | + return __DIR__ . '/stubs/repo-observatory.stub'; |
|
49 | 49 | } else { |
50 | - return __DIR__.'/stubs/repo-no-observatory.stub'; |
|
50 | + return __DIR__ . '/stubs/repo-no-observatory.stub'; |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function getDefaultNamespace($rootNamespace) |
62 | 62 | { |
63 | - return $rootNamespace.'\Lib\Repos'; |
|
63 | + return $rootNamespace . '\Lib\Repos'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getStub() |
44 | 44 | { |
45 | - return __DIR__.'/stubs/handler.stub'; |
|
45 | + return __DIR__ . '/stubs/handler.stub'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function getDefaultNamespace($rootNamespace) |
56 | 56 | { |
57 | - return $rootNamespace.'\Lib\Commands\Handlers'; |
|
57 | + return $rootNamespace . '\Lib\Commands\Handlers'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function getStub() |
43 | 43 | { |
44 | - return __DIR__.'/stubs/command.stub'; |
|
44 | + return __DIR__ . '/stubs/command.stub'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function getDefaultNamespace($rootNamespace) |
55 | 55 | { |
56 | - return $rootNamespace.'\Lib\Commands'; |
|
56 | + return $rootNamespace . '\Lib\Commands'; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | protected function getStub() |
43 | 43 | { |
44 | 44 | if ($this->option('validator')) { |
45 | - return __DIR__.'/stubs/factory-validator.stub'; |
|
45 | + return __DIR__ . '/stubs/factory-validator.stub'; |
|
46 | 46 | } else { |
47 | - return __DIR__.'/stubs/factory-no-validator.stub'; |
|
47 | + return __DIR__ . '/stubs/factory-no-validator.stub'; |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | protected function getDefaultNamespace($rootNamespace) |
59 | 59 | { |
60 | - return $rootNamespace.'\Lib\Factories'; |
|
60 | + return $rootNamespace . '\Lib\Factories'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function getStub() |
46 | 46 | { |
47 | - return __DIR__.'/stubs/controller.stub'; |
|
47 | + return __DIR__ . '/stubs/controller.stub'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -57,10 +57,10 @@ discard block |
||
57 | 57 | protected function getDefaultNamespace($rootNamespace) |
58 | 58 | { |
59 | 59 | if ($this->option('subfolder')) { |
60 | - return $rootNamespace.'\Http\Controllers\\'.$this->option('subfolder'); |
|
60 | + return $rootNamespace . '\Http\Controllers\\' . $this->option('subfolder'); |
|
61 | 61 | } |
62 | 62 | |
63 | - return $rootNamespace.'\Http\Controllers'; |
|
63 | + return $rootNamespace . '\Http\Controllers'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |