Update composer dependencies

This commit is contained in:
Kijin Sung 2017-06-29 23:39:23 +09:00
parent 49cc39e507
commit cbd324c35b
428 changed files with 17862 additions and 5885 deletions

View file

@ -20,6 +20,17 @@ class Requests_Utility_CaseInsensitiveDictionary implements ArrayAccess, Iterato
*/
protected $data = array();
/**
* Creates a case insensitive dictionary.
*
* @param array $data Dictionary/map to convert to case-insensitive
*/
public function __construct(array $data = array()) {
foreach ($data as $key => $value) {
$this->offsetSet($key, $value);
}
}
/**
* Check if the given item exists
*
@ -39,8 +50,9 @@ class Requests_Utility_CaseInsensitiveDictionary implements ArrayAccess, Iterato
*/
public function offsetGet($key) {
$key = strtolower($key);
if (!isset($this->data[$key]))
if (!isset($this->data[$key])) {
return null;
}
return $this->data[$key];
}