From 34b71148f0f431a5ae881ce6452f0c8d187e9fd8 Mon Sep 17 00:00:00 2001 From: pelmered Date: Mon, 29 Apr 2024 14:07:37 +0000 Subject: [PATCH] Fix styling --- config/ddd.php | 1 - src/Commands/Concerns/ResolvesStubPath.php | 6 ------ src/Commands/DomainMigrationMakeCommand.php | 3 --- src/Commands/DomainModelMakeCommand.php | 11 +++++------ src/Commands/DomainSeederMakeCommand.php | 3 --- src/LaravelDDDServiceProvider.php | 1 - 6 files changed, 5 insertions(+), 20 deletions(-) diff --git a/config/ddd.php b/config/ddd.php index caa1b84..4514df9 100644 --- a/config/ddd.php +++ b/config/ddd.php @@ -68,7 +68,6 @@ 'trait' => '', ], - /* |-------------------------------------------------------------------------- | Generate All diff --git a/src/Commands/Concerns/ResolvesStubPath.php b/src/Commands/Concerns/ResolvesStubPath.php index ef5025e..90aba37 100644 --- a/src/Commands/Concerns/ResolvesStubPath.php +++ b/src/Commands/Concerns/ResolvesStubPath.php @@ -2,12 +2,6 @@ namespace Lunarstorm\LaravelDDD\Commands\Concerns; -use Illuminate\Support\Str; -use Lunarstorm\LaravelDDD\Support\Domain; -use Lunarstorm\LaravelDDD\Support\DomainResolver; -use Lunarstorm\LaravelDDD\Support\Path; -use Symfony\Component\Console\Input\InputOption; - trait ResolvesStubPath { protected function resolveStubPath($path) diff --git a/src/Commands/DomainMigrationMakeCommand.php b/src/Commands/DomainMigrationMakeCommand.php index abbf98e..b5473a4 100644 --- a/src/Commands/DomainMigrationMakeCommand.php +++ b/src/Commands/DomainMigrationMakeCommand.php @@ -4,7 +4,6 @@ use Illuminate\Database\Console\Migrations\MigrateMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; -use Symfony\Component\Console\Input\InputOption; class DomainMigrationMakeCommand extends MigrateMakeCommand { @@ -29,10 +28,8 @@ protected function getMigrationPath() return $this->getDomainPath($name); } - protected function guessObjectType(): string { return 'migration'; } - } diff --git a/src/Commands/DomainModelMakeCommand.php b/src/Commands/DomainModelMakeCommand.php index 1ee00d2..17e53f4 100644 --- a/src/Commands/DomainModelMakeCommand.php +++ b/src/Commands/DomainModelMakeCommand.php @@ -25,11 +25,11 @@ protected function getOptions() ...parent::getOptions(), ['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the domain model'], ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration for the domain model'], - ['test', 't', InputOption::VALUE_NONE, 'Generate an accompanying PHPUnit test for the model'], # TDOD - ['pest', 'tpa', InputOption::VALUE_NONE, 'Generate an accompanying Pest test for the model'], # TDOD - ['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder for the model'], # TDOD - ['policy', 'p', InputOption::VALUE_NONE, 'Create a new seeder for the model'], # TDOD - ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, and policy classes for the model'], # TDOD + ['test', 't', InputOption::VALUE_NONE, 'Generate an accompanying PHPUnit test for the model'], // TDOD + ['pest', 'tpa', InputOption::VALUE_NONE, 'Generate an accompanying Pest test for the model'], // TDOD + ['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder for the model'], // TDOD + ['policy', 'p', InputOption::VALUE_NONE, 'Create a new seeder for the model'], // TDOD + ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, and policy classes for the model'], // TDOD ]; } @@ -160,5 +160,4 @@ private function createSeeder() '--domain' => $this->domain->dotName, ]); } - } diff --git a/src/Commands/DomainSeederMakeCommand.php b/src/Commands/DomainSeederMakeCommand.php index 111fa33..0aff46a 100644 --- a/src/Commands/DomainSeederMakeCommand.php +++ b/src/Commands/DomainSeederMakeCommand.php @@ -2,12 +2,9 @@ namespace Lunarstorm\LaravelDDD\Commands; -use Illuminate\Database\Console\Migrations\MigrateMakeCommand; use Illuminate\Database\Console\Seeds\SeederMakeCommand; -use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesStubPath; -use Symfony\Component\Console\Input\InputOption; class DomainSeederMakeCommand extends SeederMakeCommand { diff --git a/src/LaravelDDDServiceProvider.php b/src/LaravelDDDServiceProvider.php index 1a8f94b..18c14c3 100644 --- a/src/LaravelDDDServiceProvider.php +++ b/src/LaravelDDDServiceProvider.php @@ -3,7 +3,6 @@ namespace Lunarstorm\LaravelDDD; use Illuminate\Database\Migrations\MigrationCreator; -use Illuminate\Database\Migrations\Migrator; use Lunarstorm\LaravelDDD\Support\DomainAutoloader; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider;