function LintCommand::display
1 call to LintCommand::display()
- LintCommand::execute in vendor/
symfony/ yaml/ Command/ LintCommand.php - Executes the current command.
File
-
vendor/
symfony/ yaml/ Command/ LintCommand.php, line 151
Class
- LintCommand
- Validates YAML files syntax and outputs encountered errors.
Namespace
Symfony\Component\Yaml\CommandCode
private function display(SymfonyStyle $io, array $files) : int {
return match ($this->format) { 'txt' => $this->displayTxt($io, $files),
'json' => $this->displayJson($io, $files),
'github' => $this->displayTxt($io, $files, true),
default => throw new InvalidArgumentException(\sprintf('Supported formats are "%s".', implode('", "', $this->getAvailableFormatOptions()))),
};
}