@@ -3,14 +3,14 @@ |
||
| 3 | 3 | namespace Spatie\ViewModels; |
| 4 | 4 | |
| 5 | 5 | use Closure; |
| 6 | +use Illuminate\Contracts\Support\Arrayable; |
|
| 7 | +use Illuminate\Contracts\Support\Responsable; |
|
| 8 | +use Illuminate\Http\JsonResponse; |
|
| 9 | +use Illuminate\Support\Collection; |
|
| 10 | +use Illuminate\Support\Str; |
|
| 6 | 11 | use ReflectionClass; |
| 7 | 12 | use ReflectionMethod; |
| 8 | 13 | use ReflectionProperty; |
| 9 | -use Illuminate\Support\Str; |
|
| 10 | -use Illuminate\Http\JsonResponse; |
|
| 11 | -use Illuminate\Support\Collection; |
|
| 12 | -use Illuminate\Contracts\Support\Arrayable; |
|
| 13 | -use Illuminate\Contracts\Support\Responsable; |
|
| 14 | 14 | use Symfony\Component\HttpFoundation\Response; |
| 15 | 15 | |
| 16 | 16 | abstract class ViewModel implements Arrayable, Responsable |
@@ -90,9 +90,8 @@ |
||
| 90 | 90 | * Check wheter the name param has |
| 91 | 91 | * namespace or not. |
| 92 | 92 | * |
| 93 | - * @param string $stub |
|
| 94 | 93 | * @param string $name |
| 95 | - * @return $this |
|
| 94 | + * @return boolean |
|
| 96 | 95 | */ |
| 97 | 96 | protected function hasNamespace($name) |
| 98 | 97 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ViewModels\Commands; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Console\GeneratorCommand; |
| 6 | +use Illuminate\Support\Str; |
|
| 7 | 7 | use Symfony\Component\Console\Input\InputOption; |
| 8 | 8 | |
| 9 | 9 | class ViewModelMakeCommand extends GeneratorCommand |