public static function duplicateAggregator()
    {
        return function (array $data) {
            return self::walkQuery($data, '', function ($key, $prefix) {
                return is_int($key) ? $prefix : "{$prefix}[{$key}]";
            });
        };
    }
public static function duplicateAggregator()
    {
        return function (array $data) {
            return self::walkQuery($data, '', function ($key, $prefix) {
                return is_int($key) ? $prefix : "{$prefix}[{$key}]";
            });
        };
    }
public static function duplicateAggregator ( ) { return function ( array $ data ) { return self :: walkQuery ( $ data , '' , function ( $ key , $ prefix ) { return is_int ( $ key ) ? $ prefix : "{$prefix}[{$key}]" ; } ) ; } ; }
Query string aggregator that does not aggregate nested query string
values and allows duplicates in the resulting array.

Example: http://test.com?q=1&q=2

@return callable
Query string aggregator that does not aggregate nested query string values and allows duplicates in the resulting array .