protected function display(array $details, string $format = 'txt'): int
    {
        $verbose = $this->getOutput()->isVerbose();

        switch ($format) {
            case 'txt':
                return $this->displayText($details, $verbose);
            case 'json':
                return $this->displayJson($details);

            default:
                throw new InvalidArgumentException(\sprintf('The format [%s] is not supported.', $format));
        }
    }
protected function display(array $details, string $format = 'txt'): int
    {
        $verbose = $this->getOutput()->isVerbose();

        switch ($format) {
            case 'txt':
                return $this->displayText($details, $verbose);
            case 'json':
                return $this->displayJson($details);

            default:
                throw new InvalidArgumentException(\sprintf('The format [%s] is not supported.', $format));
        }
    }
protected function display ( array $ details , string $ format = 'txt' ) : int { $ verbose = $ this -> getOutput ( ) -> isVerbose ( ) ; switch ( $ format ) { case 'txt' : return $ this -> displayText ( $ details , $ verbose ) ; case 'json' : return $ this -> displayJson ( $ details ) ; default : throw new InvalidArgumentException ( \ sprintf ( 'The format [%s] is not supported.' , $ format ) ) ; } }
Output the results of the linting.

@param array  $details validation results from all linted files
@param string $format  Format to output the results in. Supports txt or json.

@throws \InvalidArgumentException thrown for an unknown format

@return int
Output the results of the linting .