protected static function compileToken(&$context, $info) {
        list($raw, $vars, $token, $indent) = $info;

        $context['tokens']['partialind'] = $indent;
        $context['currentToken'] = $token;

        if ($ret = static::operator($token[Token::POS_OP], $context, $vars)) {
            return $ret;
        }

        if (isset($vars[0][0])) {
            if ($ret = static::customHelper($context, $vars, $raw, true)) {
                return static::compileOutput($context, $ret, 'FIXME: helper', $raw, false);
            }
            if ($context['flags']['else'] && ($vars[0][0] === 'else')) {
                return static::doElse($context, $vars);
            }
            if ($vars[0][0] === 'lookup') {
                return static::compileLookup($context, $vars, $raw);
            }
            if ($vars[0][0] === 'log') {
                return static::compileLog($context, $vars, $raw);
            }
        }

        return static::compileVariable($context, $vars, $raw, false);
    }
protected static function compileToken(&$context, $info) {
        list($raw, $vars, $token, $indent) = $info;

        $context['tokens']['partialind'] = $indent;
        $context['currentToken'] = $token;

        if ($ret = static::operator($token[Token::POS_OP], $context, $vars)) {
            return $ret;
        }

        if (isset($vars[0][0])) {
            if ($ret = static::customHelper($context, $vars, $raw, true)) {
                return static::compileOutput($context, $ret, 'FIXME: helper', $raw, false);
            }
            if ($context['flags']['else'] && ($vars[0][0] === 'else')) {
                return static::doElse($context, $vars);
            }
            if ($vars[0][0] === 'lookup') {
                return static::compileLookup($context, $vars, $raw);
            }
            if ($vars[0][0] === 'log') {
                return static::compileLog($context, $vars, $raw);
            }
        }

        return static::compileVariable($context, $vars, $raw, false);
    }
protected static function compileToken ( & $ context , $ info ) { list ( $ raw , $ vars , $ token , $ indent ) = $ info ; $ context [ 'tokens' ] [ 'partialind' ] = $ indent ; $ context [ 'currentToken' ] = $ token ; if ( $ ret = static :: operator ( $ token [ Token :: POS_OP ] , $ context , $ vars ) ) { return $ ret ; } if ( isset ( $ vars [ 0 ] [ 0 ] ) ) { if ( $ ret = static :: customHelper ( $ context , $ vars , $ raw , true ) ) { return static :: compileOutput ( $ context , $ ret , 'FIXME: helper' , $ raw , false ) ; } if ( $ context [ 'flags' ] [ 'else' ] && ( $ vars [ 0 ] [ 0 ] === 'else' ) ) { return static :: doElse ( $ context , $ vars ) ; } if ( $ vars [ 0 ] [ 0 ] === 'lookup' ) { return static :: compileLookup ( $ context , $ vars , $ raw ) ; } if ( $ vars [ 0 ] [ 0 ] === 'log' ) { return static :: compileLog ( $ context , $ vars , $ raw ) ; } } return static :: compileVariable ( $ context , $ vars , $ raw , false ) ; }
Return compiled PHP code for a handlebars token

@param array<string,array|string|integer> $context current compile context
@param array<string,array|boolean> $info parsed information

@return string Return compiled code segment for the token
Return compiled PHP code for a handlebars token