Code Duplication    Length = 8-8 lines in 3 locations

library/Requests/Response/Headers.php 2 locations

@@ 32-39 (lines=8) @@
29
	 * @param string $key
30
	 * @return string Header value
31
	 */
32
	public function offsetGet($key) {
33
		$key = strtolower($key);
34
		if (!isset($this->data[$key])) {
35
			return null;
36
		}
37
38
		return $this->flatten($this->data[$key]);
39
	}
40
41
	/**
42
	 * Set the given item
@@ 69-76 (lines=8) @@
66
	 * @param string $key
67
	 * @return array Header values
68
	 */
69
	public function getValues($key) {
70
		$key = strtolower($key);
71
		if (!isset($this->data[$key])) {
72
			return null;
73
		}
74
75
		return $this->data[$key];
76
	}
77
78
	/**
79
	 * Flattens a value into a string

library/Requests/Utility/CaseInsensitiveDictionary.php 1 location

@@ 54-61 (lines=8) @@
51
	 * @param string $key Item key
52
	 * @return string Item value
53
	 */
54
	public function offsetGet($key) {
55
		$key = strtolower($key);
56
		if (!isset($this->data[$key])) {
57
			return null;
58
		}
59
60
		return $this->data[$key];
61
	}
62
63
	/**
64
	 * Set the given item