public static function method(array $item): string
    {
        if (empty($item['function'])) {
            return '';
        }
        $method = $item['function'];
        if (!empty($item['class'])) {
            $type = (empty($item['type']) ? '->' : $item['type']);
            $class = $item['class'].$type;
        } else {
            $class = '';
        }
        $args = isset($item['args']) ? $item['args'] : [];
        foreach ($args as &$arg) {
            $arg = self::arg($arg);
        }
        unset($arg);
        return $class.$method.'('.implode(', ', $args).')';
    }
public static function method(array $item): string
    {
        if (empty($item['function'])) {
            return '';
        }
        $method = $item['function'];
        if (!empty($item['class'])) {
            $type = (empty($item['type']) ? '->' : $item['type']);
            $class = $item['class'].$type;
        } else {
            $class = '';
        }
        $args = isset($item['args']) ? $item['args'] : [];
        foreach ($args as &$arg) {
            $arg = self::arg($arg);
        }
        unset($arg);
        return $class.$method.'('.implode(', ', $args).')';
    }
public static function method ( array $ item ) : string { if ( empty ( $ item [ 'function' ] ) ) { return '' ; } $ method = $ item [ 'function' ] ; if ( ! empty ( $ item [ 'class' ] ) ) { $ type = ( empty ( $ item [ 'type' ] ) ? '->' : $ item [ 'type' ] ) ; $ class = $ item [ 'class' ] . $ type ; } else { $ class = '' ; } $ args = isset ( $ item [ 'args' ] ) ? $ item [ 'args' ] : [ ] ; foreach ( $ args as & $ arg ) { $ arg = self :: arg ( $ arg ) ; } unset ( $ arg ) ; return $ class . $ method . '(' . implode ( ', ' , $ args ) . ')' ; }
Represents a method call as a string

@param array $item
@return string
Represents a method call as a string