@@ -94,7 +94,7 @@ |
||
| 94 | 94 | * @param string $path |
| 95 | 95 | * @param string $fqcn |
| 96 | 96 | * |
| 97 | - * @return bool |
|
| 97 | + * @return boolean|null |
|
| 98 | 98 | */ |
| 99 | 99 | protected function generateFile(FileGenerator $generator, $path, $fqcn) |
| 100 | 100 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Jumilla\Generators\Laravel\OneFileGeneratorCommand as BaseCommand; |
| 6 | 6 | use Jumilla\Generators\FileGenerator; |
| 7 | -use LaravelPlus\Extension\Addons\Addon; |
|
| 8 | 7 | use LaravelPlus\Extension\Generators\GeneratorCommandTrait; |
| 9 | 8 | |
| 10 | 9 | class TestMakeCommand extends BaseCommand |
@@ -61,16 +61,16 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @return $string |
| 63 | 63 | */ |
| 64 | - protected function getRootNamespace() |
|
| 65 | - { |
|
| 66 | - return $this->addon ? 'Tests\\'.studly_case($this->addon->name()) : 'Tests'; |
|
| 67 | - } |
|
| 64 | + protected function getRootNamespace() |
|
| 65 | + { |
|
| 66 | + return $this->addon ? 'Tests\\'.studly_case($this->addon->name()) : 'Tests'; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Get the root namespace for the class. |
|
| 71 | - * |
|
| 72 | - * @return string |
|
| 73 | - */ |
|
| 69 | + /** |
|
| 70 | + * Get the root namespace for the class. |
|
| 71 | + * |
|
| 72 | + * @return string |
|
| 73 | + */ |
|
| 74 | 74 | protected function getDefaultNamespace() |
| 75 | 75 | { |
| 76 | 76 | return $this->getRootNamespace() . ($this->option('unit') ? '\\Unit' : '\\Feature'); |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | protected function getDefaultNamespace() |
| 75 | 75 | { |
| 76 | - return $this->getRootNamespace() . ($this->option('unit') ? '\\Unit' : '\\Feature'); |
|
| 76 | + return $this->getRootNamespace().($this->option('unit') ? '\\Unit' : '\\Feature'); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |