private function isTCoalesce($tokens, $stackPtr)
    {
        if ($tokens[$stackPtr]['code'] !== \T_INLINE_THEN || isset($tokens[($stackPtr - 1)]) === false) {
            // Function called for wrong token or token has no predecesor.
            return false;
        }

        if ($tokens[($stackPtr - 1)]['code'] === \T_INLINE_THEN) {
            // Make sure not to confuse it with the T_COALESCE_EQUAL token.
            if (isset($tokens[($stackPtr + 1)]) === false || $tokens[($stackPtr + 1)]['code'] !== \T_EQUAL) {
                return true;
            }
        }

        return false;
    }
private function isTCoalesce($tokens, $stackPtr)
    {
        if ($tokens[$stackPtr]['code'] !== \T_INLINE_THEN || isset($tokens[($stackPtr - 1)]) === false) {
            // Function called for wrong token or token has no predecesor.
            return false;
        }

        if ($tokens[($stackPtr - 1)]['code'] === \T_INLINE_THEN) {
            // Make sure not to confuse it with the T_COALESCE_EQUAL token.
            if (isset($tokens[($stackPtr + 1)]) === false || $tokens[($stackPtr + 1)]['code'] !== \T_EQUAL) {
                return true;
            }
        }

        return false;
    }
private function isTCoalesce ( $ tokens , $ stackPtr ) { if ( $ tokens [ $ stackPtr ] [ 'code' ] !== \ T_INLINE_THEN || isset ( $ tokens [ ( $ stackPtr - 1 ) ] ) === false ) { // Function called for wrong token or token has no predecesor. return false ; } if ( $ tokens [ ( $ stackPtr - 1 ) ] [ 'code' ] === \ T_INLINE_THEN ) { // Make sure not to confuse it with the T_COALESCE_EQUAL token. if ( isset ( $ tokens [ ( $ stackPtr + 1 ) ] ) === false || $ tokens [ ( $ stackPtr + 1 ) ] [ 'code' ] !== \ T_EQUAL ) { return true ; } } return false ; }
Callback function to determine whether a T_INLINE_THEN token is really a T_COALESCE token.

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

@return bool
Callback function to determine whether a T_INLINE_THEN token is really a T_COALESCE token .