public function check_for_matches( $stackPtr ) {
		$token_content = strtolower( $this->tokens[ $stackPtr ]['content'] );
		$skip_to       = array();

		foreach ( $this->groups as $groupName => $group ) {

			if ( isset( $this->excluded_groups[ $groupName ] ) ) {
				continue;
			}

			if ( isset( $group['whitelist'][ $token_content ] ) ) {
				continue;
			}

			if ( preg_match( $group['regex'], $token_content ) === 1 ) {
				$skip_to[] = $this->process_matched_token( $stackPtr, $groupName, $token_content );
			}
		}

		if ( empty( $skip_to ) || min( $skip_to ) === 0 ) {
			return;
		}

		return min( $skip_to );
	}
public function check_for_matches( $stackPtr ) {
		$token_content = strtolower( $this->tokens[ $stackPtr ]['content'] );
		$skip_to       = array();

		foreach ( $this->groups as $groupName => $group ) {

			if ( isset( $this->excluded_groups[ $groupName ] ) ) {
				continue;
			}

			if ( isset( $group['whitelist'][ $token_content ] ) ) {
				continue;
			}

			if ( preg_match( $group['regex'], $token_content ) === 1 ) {
				$skip_to[] = $this->process_matched_token( $stackPtr, $groupName, $token_content );
			}
		}

		if ( empty( $skip_to ) || min( $skip_to ) === 0 ) {
			return;
		}

		return min( $skip_to );
	}
public function check_for_matches ( $ stackPtr ) { $ token_content = strtolower ( $ this -> tokens [ $ stackPtr ] [ 'content' ] ) ; $ skip_to = array ( ) ; foreach ( $ this -> groups as $ groupName => $ group ) { if ( isset ( $ this -> excluded_groups [ $ groupName ] ) ) { continue ; } if ( isset ( $ group [ 'whitelist' ] [ $ token_content ] ) ) { continue ; } if ( preg_match ( $ group [ 'regex' ] , $ token_content ) === 1 ) { $ skip_to [ ] = $ this -> process_matched_token ( $ stackPtr , $ groupName , $ token_content ) ; } } if ( empty ( $ skip_to ) || min ( $ skip_to ) === 0 ) { return ; } return min ( $ skip_to ) ; }
Verify if the current token is one of the targetted functions.

@since 0.11.0 Split out from the `process()` method.

@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.
Verify if the current token is one of the targetted functions .