chore: PHPStan errors

This commit is contained in:
Oliver Davies 2023-11-22 20:06:25 +00:00
parent d5f412ee16
commit 517309e222

View file

@ -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))