Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
save_bvnghean.vn
/
wp-content
/
plugins
/
backupbuddy
/
destinations
/
_s3lib2
/
Guzzle
/
Http
/
QueryAggregator
:
DuplicateAggregator.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Guzzle\Http\QueryAggregator; use Guzzle\Http\QueryString; /** * 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, $value, QueryString $query) { if ($query->isUrlEncoding()) { return array($query->encodeValue($key) => array_map(array($query, 'encodeValue'), $value)); } else { return array($key => $value); } } }