WordPress/Sniff.php
private function throwMessage( $message, $stackPtr, $is_error = true, $code = 'Found', $data = array(), $severity = 0, $fixable = false ) {

		$method = 'add';
		if ( true === $fixable ) {
			$method .= 'Fixable';
		}

		if ( true === $is_error ) {
			$method .= 'Error';
		} else {
			$method .= 'Warning';
		}

		return \call_user_func( array( $this->phpcsFile, $method ), $message, $stackPtr, $code, $data, $severity );
	}
private function throwMessage( $message, $stackPtr, $is_error = true, $code = 'Found', $data = array(), $severity = 0, $fixable = false ) {

		$method = 'add';
		if ( true === $fixable ) {
			$method .= 'Fixable';
		}

		if ( true === $is_error ) {
			$method .= 'Error';
		} else {
			$method .= 'Warning';
		}

		return \call_user_func( array( $this->phpcsFile, $method ), $message, $stackPtr, $code, $data, $severity );
	}
Add a PHPCS message to the output stack as either a warning or an error.

@since 0.11.0

@param string $message   The message.
@param int    $stackPtr  The position of the token the message relates to.
@param bool   $is_error  Optional. Whether to report the message as an 'error' or 'warning'.
Defaults to true (error).
@param string $code      Optional error code for the message. Defaults to 'Found'.
@param array  $data      Optional input for the data replacements.
@param int    $severity  Optional. Severity level. Defaults to 0 which will translate to
the PHPCS default severity level.
@param bool   $fixable   Optional. Whether this is a fixable error. Defaults to false.
@return bool