diff --git a/src/Command/RemoveIgnoredFilesCommand.php b/src/Command/RemoveIgnoredFilesCommand.php deleted file mode 100644 index 07728db..0000000 --- a/src/Command/RemoveIgnoredFilesCommand.php +++ /dev/null @@ -1,34 +0,0 @@ - $filesToGenerate - * @var ConfigDto $configurationDataDto, - * @var array $configurationData - */ - [$configurationData, $configurationDataDto, $filesToGenerate] = $filesToGenerateAndConfigurationData; - - $filesToGenerate = $filesToGenerate->filter(function (TemplateFile $templateFile): bool { - return !collect($this->filenames)->contains($templateFile->name); - }); - - return $next([$configurationData, $configurationDataDto, $filesToGenerate]); - } -} diff --git a/src/Console/Command/GenerateCommand.php b/src/Console/Command/GenerateCommand.php index 884405a..5d4dc3f 100644 --- a/src/Console/Command/GenerateCommand.php +++ b/src/Console/Command/GenerateCommand.php @@ -8,11 +8,9 @@ use App\Command\CreateFinalConfigurationDataCommand; use App\Command\CreateListOfFilesToGenerateCommand; use App\Command\FindBuildConfigurationFileCommand; use App\Command\GenerateConfigurationFilesCommand; -use App\Command\RemoveIgnoredFilesCommand; use App\Command\ValidateConfigurationDataCommand; use App\DataTransferObject\ConfigDto; use App\DataTransferObject\TemplateFile; -use App\IgnoreFile; use Illuminate\Pipeline\Pipeline; use Illuminate\Support\Collection; use Symfony\Component\Console\Attribute\AsCommand; @@ -74,7 +72,6 @@ class GenerateCommand extends Command new CreateFinalConfigurationDataCommand(), new ValidateConfigurationDataCommand(), new CreateListOfFilesToGenerateCommand(), - new RemoveIgnoredFilesCommand(IgnoreFile::parse()), new GenerateConfigurationFilesCommand( $this->filesystem, $this->twig, diff --git a/src/IgnoreFile.php b/src/IgnoreFile.php deleted file mode 100644 index 30ff2e6..0000000 --- a/src/IgnoreFile.php +++ /dev/null @@ -1,19 +0,0 @@ -execute([[], [], $filenamesToGenerate], function ($result) { - self::assertCount(1, $result[2]); - self::assertSame('phpcs.xml.dist', $result[2][0]->name); - }); - } -} diff --git a/tests/Kernel/IgnoreFileTest.php b/tests/Kernel/IgnoreFileTest.php deleted file mode 100644 index 4a85329..0000000 --- a/tests/Kernel/IgnoreFileTest.php +++ /dev/null @@ -1,26 +0,0 @@ -