src/Command/LintCommand.php
protected function showErrors($errors)
    {
        $i = 0;
        $this->output->writeln("\nThere was ".count($errors).' errors:');

        foreach ($errors as $filename => $error) {
            $this->output->writeln('<comment>'.++$i.". {$filename}:{$error['line']}".'</comment>');

            $this->output->write($this->getHighlightedCodeSnippet($filename, $error['line']));

            $this->output->writeln("<error> {$error['error']}</error>");
        }
    }
protected function showErrors($errors)
    {
        $i = 0;
        $this->output->writeln("\nThere was ".count($errors).' errors:');

        foreach ($errors as $filename => $error) {
            $this->output->writeln('<comment>'.++$i.". {$filename}:{$error['line']}".'</comment>');

            $this->output->write($this->getHighlightedCodeSnippet($filename, $error['line']));

            $this->output->writeln("<error> {$error['error']}</error>");
        }
    }
protected function showErrors ( $ errors ) { $ i = 0 ; $ this -> output -> writeln ( "\nThere was " . count ( $ errors ) . ' errors:' ) ; foreach ( $ errors as $ filename => $ error ) { $ this -> output -> writeln ( '<comment>' . ++ $ i . ". {$filename}:{$error['line']}" . '</comment>' ) ; $ this -> output -> write ( $ this -> getHighlightedCodeSnippet ( $ filename , $ error [ 'line' ] ) ) ; $ this -> output -> writeln ( "<error> {$error['error']}</error>" ) ; } }
Show errors detail.

@param array $errors

@throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
Show errors detail .