From 517309e22245c896c81abf07c23a3addd717d074 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 22 Nov 2023 20:06:25 +0000 Subject: [PATCH] chore: PHPStan errors --- src/Command/GenerateCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/GenerateCommand.php b/src/Command/GenerateCommand.php index c153cfa..f8efe36 100644 --- a/src/Command/GenerateCommand.php +++ b/src/Command/GenerateCommand.php @@ -8,6 +8,7 @@ use App\Action\CreateFinalConfigurationData; use App\Action\CreateListOfFilesToGenerate; use App\Action\GenerateConfigurationFiles; use App\Action\ValidateConfigurationData; +use App\DataTransferObject\Config; use App\DataTransferObject\TemplateFile; use Illuminate\Pipeline\Pipeline; use Illuminate\Support\Collection; @@ -91,12 +92,12 @@ class GenerateCommand extends Command return Command::SUCCESS; } - private static function buildFilePath(TemplateFile $templateFile): string + protected static function buildFilePath(TemplateFile $templateFile): string { return collect([$templateFile->path, $templateFile->name])->filter()->implode('/'); } - private static function getListOfFiles(Collection $filesToGenerate): Collection + protected static function getListOfFiles(Collection $filesToGenerate): Collection { return $filesToGenerate ->map(fn (TemplateFile $templateFile): string => static::buildFilePath($templateFile))