Вход Регистрация
Файл: vkolhoze.com/vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/DuplicateAggregator.php
Строк: 20
<?php

namespace GuzzleHttpQueryAggregator;

use 
GuzzleHttpQueryString;

/**
 * Does not aggregate nested query string values and allows duplicates in the resulting array
 *
 * Example: http://test.com?q=1&q=2
 */
class DuplicateAggregator implements QueryAggregatorInterface
{
    public function 
aggregate($key$valueQueryString $query)
    {
        if (
$query->isUrlEncoding()) {
            return array(
$query->encodeValue($key) => array_map(array($query'encodeValue'), $value));
        } else {
            return array(
$key => $value);
        }
    }
}
Онлайн: 0
Реклама