public static function helpers($context) {
        $ret = '';
        foreach ($context['helpers'] as $name => $func) {
            if (!isset($context['usedCount']['helpers'][$name])) {
                continue;
            }
            if ((is_object($func) && ($func instanceof \Closure)) || ($context['flags']['exhlp'] == 0)) {
                $ret .= ("            '$name' => " . static::closure($context, $func) . ",\n");
                continue;
            }
            $ret .= "            '$name' => '$func',\n";
        }

        return "array($ret)";
    }
public static function helpers($context) {
        $ret = '';
        foreach ($context['helpers'] as $name => $func) {
            if (!isset($context['usedCount']['helpers'][$name])) {
                continue;
            }
            if ((is_object($func) && ($func instanceof \Closure)) || ($context['flags']['exhlp'] == 0)) {
                $ret .= ("            '$name' => " . static::closure($context, $func) . ",\n");
                continue;
            }
            $ret .= "            '$name' => '$func',\n";
        }

        return "array($ret)";
    }
public static function helpers ( $ context ) { $ ret = '' ; foreach ( $ context [ 'helpers' ] as $ name => $ func ) { if ( ! isset ( $ context [ 'usedCount' ] [ 'helpers' ] [ $ name ] ) ) { continue ; } if ( ( is_object ( $ func ) && ( $ func instanceof \ Closure ) ) || ( $ context [ 'flags' ] [ 'exhlp' ] == 0 ) ) { $ ret .= ( "            '$name' => " . static :: closure ( $ context , $ func ) . ",\n" ) ; continue ; } $ ret .= "            '$name' => '$func',\n" ; } return "array($ret)" ; }
Export required custom helper functions

@param array<string,array|string|integer> $context current compile context

@return string
Export required custom helper functions