Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered authored and github-actions[bot] committed Apr 29, 2024
1 parent 380e80b commit 34b7114
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
1 change: 0 additions & 1 deletion config/ddd.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
'trait' => '',
],


/*
|--------------------------------------------------------------------------
| Generate All
Expand Down
6 changes: 0 additions & 6 deletions src/Commands/Concerns/ResolvesStubPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/DomainMigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -29,10 +28,8 @@ protected function getMigrationPath()
return $this->getDomainPath($name);
}


protected function guessObjectType(): string
{
return 'migration';
}

}
11 changes: 5 additions & 6 deletions src/Commands/DomainModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

];
}
Expand Down Expand Up @@ -160,5 +160,4 @@ private function createSeeder()
'--domain' => $this->domain->dotName,
]);
}

}
3 changes: 0 additions & 3 deletions src/Commands/DomainSeederMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion src/LaravelDDDServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34b7114

Please sign in to comment.