WPThemeReview/Sniffs/PluginTerritory/AdminBarRemovalSniff.php
public function process_token( $stackPtr ) {

		$file_name      = $this->phpcsFile->getFileName();
		$file_extension = substr( strrchr( $file_name, '.' ), 1 );

		if ( 'css' === $file_extension ) {
			if ( \T_STYLE === $this->tokens[ $stackPtr ]['code'] ) {
				return $this->process_css_style( $stackPtr );
			}
		} elseif ( isset( Tokens::$textStringTokens[ $this->tokens[ $stackPtr ]['code'] ] ) ) {
			/*
			 * Set $in_style && $in_target_selector to false if it is the first time
			 * this sniff is run on a file.
			 */
			if ( ! isset( $this->in_style[ $file_name ] ) ) {
				$this->in_style[ $file_name ] = false;
			}
			if ( ! isset( $this->in_target_selector[ $file_name ] ) ) {
				$this->in_target_selector[ $file_name ] = false;
			}

			return $this->process_text_for_style( $stackPtr, $file_name );

		} else {
			return parent::process_token( $stackPtr );
		}
	}
public function process_token( $stackPtr ) {

		$file_name      = $this->phpcsFile->getFileName();
		$file_extension = substr( strrchr( $file_name, '.' ), 1 );

		if ( 'css' === $file_extension ) {
			if ( \T_STYLE === $this->tokens[ $stackPtr ]['code'] ) {
				return $this->process_css_style( $stackPtr );
			}
		} elseif ( isset( Tokens::$textStringTokens[ $this->tokens[ $stackPtr ]['code'] ] ) ) {
			/*
			 * Set $in_style && $in_target_selector to false if it is the first time
			 * this sniff is run on a file.
			 */
			if ( ! isset( $this->in_style[ $file_name ] ) ) {
				$this->in_style[ $file_name ] = false;
			}
			if ( ! isset( $this->in_target_selector[ $file_name ] ) ) {
				$this->in_target_selector[ $file_name ] = false;
			}

			return $this->process_text_for_style( $stackPtr, $file_name );

		} else {
			return parent::process_token( $stackPtr );
		}
	}
Processes this test, when one of its tokens is encountered.

@param int $stackPtr The position of the current token in the stack.

@return int|void Integer stack pointer to skip forward or void to continue
normal file processing.