protected function ignore_token( $ptr ) {
		$token_code = $this->tokens[ $ptr ]['code'];

		if ( isset( $this->ignore_tokens[ $token_code ] ) ) {
			return true;
		}

		/*
		 * If it's a subsequent line of a multi-line sting, it will not start with a quote
		 * character, nor just *be* a quote character.
		 */
		if ( \T_CONSTANT_ENCAPSED_STRING === $token_code
			|| \T_DOUBLE_QUOTED_STRING === $token_code
		) {
			// Deal with closing quote of a multi-line string being on its own line.
			if ( "'" === $this->tokens[ $ptr ]['content']
				|| '"' === $this->tokens[ $ptr ]['content']
			) {
				return true;
			}

			// Deal with subsequent lines of a multi-line string where the token is broken up per line.
			if ( "'" !== $this->tokens[ $ptr ]['content'][0]
				&& '"' !== $this->tokens[ $ptr ]['content'][0]
			) {
				return true;
			}
		}

		return false;
	}
protected function ignore_token( $ptr ) {
		$token_code = $this->tokens[ $ptr ]['code'];

		if ( isset( $this->ignore_tokens[ $token_code ] ) ) {
			return true;
		}

		/*
		 * If it's a subsequent line of a multi-line sting, it will not start with a quote
		 * character, nor just *be* a quote character.
		 */
		if ( \T_CONSTANT_ENCAPSED_STRING === $token_code
			|| \T_DOUBLE_QUOTED_STRING === $token_code
		) {
			// Deal with closing quote of a multi-line string being on its own line.
			if ( "'" === $this->tokens[ $ptr ]['content']
				|| '"' === $this->tokens[ $ptr ]['content']
			) {
				return true;
			}

			// Deal with subsequent lines of a multi-line string where the token is broken up per line.
			if ( "'" !== $this->tokens[ $ptr ]['content'][0]
				&& '"' !== $this->tokens[ $ptr ]['content'][0]
			) {
				return true;
			}
		}

		return false;
	}
protected function ignore_token ( $ ptr ) { $ token_code = $ this -> tokens [ $ ptr ] [ 'code' ] ; if ( isset ( $ this -> ignore_tokens [ $ token_code ] ) ) { return true ; } /*
		 * If it's a subsequent line of a multi-line sting, it will not start with a quote
		 * character, nor just *be* a quote character.
		 */ if ( \ T_CONSTANT_ENCAPSED_STRING === $ token_code || \ T_DOUBLE_QUOTED_STRING === $ token_code ) { // Deal with closing quote of a multi-line string being on its own line. if ( "'" === $ this -> tokens [ $ ptr ] [ 'content' ] || '"' === $ this -> tokens [ $ ptr ] [ 'content' ] ) { return true ; } // Deal with subsequent lines of a multi-line string where the token is broken up per line. if ( "'" !== $ this -> tokens [ $ ptr ] [ 'content' ] [ 0 ] && '"' !== $ this -> tokens [ $ ptr ] [ 'content' ] [ 0 ] ) { return true ; } } return false ; }
Should the token be ignored ?

This method is only intended to be used with the first token on a line
for subsequent lines in an multi-line array item.

@param int $ptr Stack pointer to the first token on a line.

@return bool
Should the token be ignored ?