protected function getErrorCounter(ProjectDescriptor $project)
    {
        $errorCounter = 0;

        /* @var FileDescriptor $fileDescriptor */
        foreach ($project->getFiles()->getAll() as $fileDescriptor) {
            $errorCounter += count($fileDescriptor->getAllErrors()->getAll());
        }

        return $errorCounter;
    }
protected function getErrorCounter(ProjectDescriptor $project)
    {
        $errorCounter = 0;

        /* @var FileDescriptor $fileDescriptor */
        foreach ($project->getFiles()->getAll() as $fileDescriptor) {
            $errorCounter += count($fileDescriptor->getAllErrors()->getAll());
        }

        return $errorCounter;
    }
protected function getErrorCounter ( ProjectDescriptor $ project ) { $ errorCounter = 0 ; /* @var FileDescriptor $fileDescriptor */ foreach ( $ project -> getFiles ( ) -> getAll ( ) as $ fileDescriptor ) { $ errorCounter += count ( $ fileDescriptor -> getAllErrors ( ) -> getAll ( ) ) ; } return $ errorCounter ; }
Get number of errors.

@return int
Get number of errors .