protected function displayText(array $details, $verbose = false)
    {
        $errors = 0;

        foreach ($details as $info) {
            if ($info['valid'] && $verbose) {
                $file = ($info['file']) ? ' in '.$info['file'] : '';
                $this->line('<info>OK</info>'.$file);
            } elseif (!$info['valid']) {
                $errors++;
                $this->renderException($info);
            }
        }

        // Output total number of successful files
        $success = count($details) - $errors;
        $total   = count($details);

        $this->comment(sprintf('%d/%d valid files', $success, $total));

        return min($errors, 1);
    }
protected function displayText(array $details, $verbose = false)
    {
        $errors = 0;

        foreach ($details as $info) {
            if ($info['valid'] && $verbose) {
                $file = ($info['file']) ? ' in '.$info['file'] : '';
                $this->line('<info>OK</info>'.$file);
            } elseif (!$info['valid']) {
                $errors++;
                $this->renderException($info);
            }
        }

        // Output total number of successful files
        $success = count($details) - $errors;
        $total   = count($details);

        $this->comment(sprintf('%d/%d valid files', $success, $total));

        return min($errors, 1);
    }
protected function displayText ( array $ details , $ verbose = false ) { $ errors = 0 ; foreach ( $ details as $ info ) { if ( $ info [ 'valid' ] && $ verbose ) { $ file = ( $ info [ 'file' ] ) ? ' in ' . $ info [ 'file' ] : '' ; $ this -> line ( '<info>OK</info>' . $ file ) ; } elseif ( ! $ info [ 'valid' ] ) { $ errors ++ ; $ this -> renderException ( $ info ) ; } } // Output total number of successful files $ success = count ( $ details ) - $ errors ; $ total = count ( $ details ) ; $ this -> comment ( sprintf ( '%d/%d valid files' , $ success , $ total ) ) ; return min ( $ errors , 1 ) ; }
Output the results as text.

@param array $details Validation results from all linted files.
@param bool  $verbose

@return int
Output the results as text .