Code Duplication    Length = 8-8 lines in 2 locations

src/Protocol/Response/DataStream.php 2 locations

@@ 226-233 (lines=8) @@
223
	 * @param $valueType
224
	 * @return array
225
	 */
226
	public function readList($valueType) {
227
		$list = array();
228
		$count = $this->readShort();
229
		for ($i = 0; $i < $count; ++$i) {
230
			$list[] = $this->readByType($valueType, true);
231
		}
232
		return $list;
233
	}
234
235
	/**
236
	 * Read map.
@@ 242-249 (lines=8) @@
239
	 * @param $valueType
240
	 * @return array
241
	 */
242
	public function readMap($keyType, $valueType) {
243
		$map = array();
244
		$count = $this->readShort();
245
		for ($i = 0; $i < $count; ++$i) {
246
			$map[$this->readByType($keyType, true)] = $this->readByType($valueType, true);
247
		}
248
		return $map;
249
	}
250
251
	/**
252
	 * Read float.