protected function is_token_namespaced( $stackPtr ) {
		$prev = $this->phpcsFile->findPrevious( Tokens::$emptyTokens, ( $stackPtr - 1 ), null, true, null, true );

		if ( false === $prev ) {
			return false;
		}

		if ( \T_NS_SEPARATOR !== $this->tokens[ $prev ]['code'] ) {
			return false;
		}

		$before_prev = $this->phpcsFile->findPrevious( Tokens::$emptyTokens, ( $prev - 1 ), null, true, null, true );
		if ( false === $before_prev ) {
			return false;
		}

		if ( \T_STRING !== $this->tokens[ $before_prev ]['code']
			&& \T_NAMESPACE !== $this->tokens[ $before_prev ]['code']
		) {
			return false;
		}

		return true;
	}
protected function is_token_namespaced( $stackPtr ) {
		$prev = $this->phpcsFile->findPrevious( Tokens::$emptyTokens, ( $stackPtr - 1 ), null, true, null, true );

		if ( false === $prev ) {
			return false;
		}

		if ( \T_NS_SEPARATOR !== $this->tokens[ $prev ]['code'] ) {
			return false;
		}

		$before_prev = $this->phpcsFile->findPrevious( Tokens::$emptyTokens, ( $prev - 1 ), null, true, null, true );
		if ( false === $before_prev ) {
			return false;
		}

		if ( \T_STRING !== $this->tokens[ $before_prev ]['code']
			&& \T_NAMESPACE !== $this->tokens[ $before_prev ]['code']
		) {
			return false;
		}

		return true;
	}
protected function is_token_namespaced ( $ stackPtr ) { $ prev = $ this -> phpcsFile -> findPrevious ( Tokens :: $ emptyTokens , ( $ stackPtr - 1 ) , null , true , null , true ) ; if ( false === $ prev ) { return false ; } if ( \ T_NS_SEPARATOR !== $ this -> tokens [ $ prev ] [ 'code' ] ) { return false ; } $ before_prev = $ this -> phpcsFile -> findPrevious ( Tokens :: $ emptyTokens , ( $ prev - 1 ) , null , true , null , true ) ; if ( false === $ before_prev ) { return false ; } if ( \ T_STRING !== $ this -> tokens [ $ before_prev ] [ 'code' ] && \ T_NAMESPACE !== $ this -> tokens [ $ before_prev ] [ 'code' ] ) { return false ; } return true ; }
Check if a particular token is prefixed with a namespace.

@internal This will give a false positive if the file is not namespaced and the token is prefixed
with `namespace\`.

@since 2.1.0

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

@return bool
Check if a particular token is prefixed with a namespace .