protected function addError(File $phpcsFile, $stackPtr, $content, $data)
    {
        $error     = "Function name, class name, namespace name or constant name can not be reserved keyword '%s' (since version %s)";
        $errorCode = $this->stringToErrorCode($content) . 'Found';
        $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
    }
protected function addError(File $phpcsFile, $stackPtr, $content, $data)
    {
        $error     = "Function name, class name, namespace name or constant name can not be reserved keyword '%s' (since version %s)";
        $errorCode = $this->stringToErrorCode($content) . 'Found';
        $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
    }
protected function addError ( File $ phpcsFile , $ stackPtr , $ content , $ data ) { $ error = "Function name, class name, namespace name or constant name can not be reserved keyword '%s' (since version %s)" ; $ errorCode = $ this -> stringToErrorCode ( $ content ) . 'Found' ; $ phpcsFile -> addError ( $ error , $ stackPtr , $ errorCode , $ data ) ; }
Add the error message.

@param \PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param int                   $stackPtr  The position of the current token in the
stack passed in $tokens.
@param string                $content   The token content found.
@param array                 $data      The data to pass into the error message.

@return void
Add the error message .