protected function reportErrors($output)
    {
        foreach ($output as $error) {
            $message = 'Class ' . $error['class'] . ' is missing a docblock.';
            $severity = PHPCI\Model\BuildError::SEVERITY_LOW;

            if ($error['type'] == 'method') {
                $message = $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
                $severity = PHPCI\Model\BuildError::SEVERITY_NORMAL;
            }

            $this->build->reportError(
                $this->phpci,
                'php_docblock_checker',
                $message,
                $severity,
                $error['file'],
                $error['line']
            );
        }
    }
protected function reportErrors($output)
    {
        foreach ($output as $error) {
            $message = 'Class ' . $error['class'] . ' is missing a docblock.';
            $severity = PHPCI\Model\BuildError::SEVERITY_LOW;

            if ($error['type'] == 'method') {
                $message = $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
                $severity = PHPCI\Model\BuildError::SEVERITY_NORMAL;
            }

            $this->build->reportError(
                $this->phpci,
                'php_docblock_checker',
                $message,
                $severity,
                $error['file'],
                $error['line']
            );
        }
    }
protected function reportErrors ( $ output ) { foreach ( $ output as $ error ) { $ message = 'Class ' . $ error [ 'class' ] . ' is missing a docblock.' ; $ severity = PHPCI \ Model \ BuildError :: SEVERITY_LOW ; if ( $ error [ 'type' ] == 'method' ) { $ message = $ error [ 'class' ] . '::' . $ error [ 'method' ] . ' is missing a docblock.' ; $ severity = PHPCI \ Model \ BuildError :: SEVERITY_NORMAL ; } $ this -> build -> reportError ( $ this -> phpci , 'php_docblock_checker' , $ message , $ severity , $ error [ 'file' ] , $ error [ 'line' ] ) ; } }
Report all of the errors we've encountered line-by-line.
@param $output
Report all of the errors we ve encountered line - by - line .