Your IP : 3.147.75.221


Current Path : /proc/self/root/home/sudancam/.trash/updraftplus/vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/
Upload File :
Current File : //proc/self/root/home/sudancam/.trash/updraftplus/vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/CommaAggregator.php

<?php

namespace Guzzle\Http\QueryAggregator;

use Guzzle\Http\QueryString;

/**
 * Aggregates nested query string variables using commas
 */
class CommaAggregator implements QueryAggregatorInterface
{
    public function aggregate($key, $value, QueryString $query)
    {
        if ($query->isUrlEncoding()) {
            return array($query->encodeValue($key) => implode(',', array_map(array($query, 'encodeValue'), $value)));
        } else {
            return array($key => implode(',', $value));
        }
    }
}