You are here

private function LintCommand::display in Lockr 7.3

1 call to LintCommand::display()
LintCommand::execute in vendor/symfony/yaml/Command/LintCommand.php

File

vendor/symfony/yaml/Command/LintCommand.php, line 130

Class

LintCommand
Validates YAML files syntax and outputs encountered errors.

Namespace

Symfony\Component\Yaml\Command

Code

private function display(SymfonyStyle $io, array $files) {
  switch ($this->format) {
    case 'txt':
      return $this
        ->displayTxt($io, $files);
    case 'json':
      return $this
        ->displayJson($io, $files);
    default:
      throw new InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
  }
}