src/Viserio/Bridge/Twig/Command/LintCommand.php
public function handle(): int
    {
        $files = $this->getFiles((array) $this->option('files'), (array) $this->option('directories'));

        // If no files are found.
        if (\count($files) === 0) {
            throw new RuntimeException('No twig files found.');
        }

        $details = [];

        foreach ($files as $file) {
            $details[] = $this->validate(\file_get_contents($file), $file);
        }

        return $this->display($details, $this->option('format'));
    }
public function handle(): int
    {
        $files = $this->getFiles((array) $this->option('files'), (array) $this->option('directories'));

        // If no files are found.
        if (\count($files) === 0) {
            throw new RuntimeException('No twig files found.');
        }

        $details = [];

        foreach ($files as $file) {
            $details[] = $this->validate(\file_get_contents($file), $file);
        }

        return $this->display($details, $this->option('format'));
    }
{@inheritdoc}