protected function processCopyrights($errorPos)
    {
        $copyrights = $this->commentParser->getCopyrights();
        $copyright  = $copyrights[0];
        if ($copyright !== null) {
            $content = $copyright->getContent();
            if (empty($content) === true) {
                $error = 'Content missing for @copyright tag in file comment';
                $this->currentFile->addError($error, $errorPos, 'MissingCopyright');
            } else if (preg_match('/^([0-9]{4})(-[0-9]{4})? (\.*\)$/', $content) === 0) {
                $error = 'Expected "xxxx-xxxx Barracuda Networks, Inc." for copyright declaration';
                $this->currentFile->addError($error, $errorPos, 'IncorrectCopyright');
            }
        }
    }
protected function processCopyrights($errorPos)
    {
        $copyrights = $this->commentParser->getCopyrights();
        $copyright  = $copyrights[0];
        if ($copyright !== null) {
            $content = $copyright->getContent();
            if (empty($content) === true) {
                $error = 'Content missing for @copyright tag in file comment';
                $this->currentFile->addError($error, $errorPos, 'MissingCopyright');
            } else if (preg_match('/^([0-9]{4})(-[0-9]{4})? (\.*\)$/', $content) === 0) {
                $error = 'Expected "xxxx-xxxx Barracuda Networks, Inc." for copyright declaration';
                $this->currentFile->addError($error, $errorPos, 'IncorrectCopyright');
            }
        }
    }
protected function processCopyrights ( $ errorPos ) { $ copyrights = $ this -> commentParser -> getCopyrights ( ) ; $ copyright = $ copyrights [ 0 ] ; if ( $ copyright !== null ) { $ content = $ copyright -> getContent ( ) ; if ( empty ( $ content ) === true ) { $ error = 'Content missing for @copyright tag in file comment' ; $ this -> currentFile -> addError ( $ error , $ errorPos , 'MissingCopyright' ) ; } else if ( preg_match ( '/^([0-9]{4})(-[0-9]{4})? (\.*\)$/' , $ content ) === 0 ) { $ error = 'Expected "xxxx-xxxx Barracuda Networks, Inc." for copyright declaration' ; $ this -> currentFile -> addError ( $ error , $ errorPos , 'IncorrectCopyright' ) ; } } }
Copyright tag must be in the form 'xxxx-xxxx Barracuda Networks, Inc.'.

@param int $errorPos The line number where the error occurs.

@return void
Copyright tag must be in the form xxxx - xxxx Barracuda Networks Inc . .