Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LintCommand.php

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\Command

Code

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()))),
    
    };
}
RSS feed
Powered by Drupal