Code Duplication    Length = 3-4 lines in 2 locations

src/Response/StreamReader.php 2 locations

@@ 320-323 (lines=4) @@
317
                    'definition'    => [],
318
                ];
319
                $length = $this->readShort();
320
                for($i = 0; $i < $length; ++$i){
321
                    $key = $this->readString();
322
                    $data['definition'][$key] = $this->readType();
323
                }
324
                return $data;
325
            case Type\Base::TUPLE:
326
                $data = [
@@ 331-333 (lines=3) @@
328
                    'definition'    =>    [],
329
                ];
330
                $length = $this->readShort();
331
                for($i = 0; $i < $length; ++$i){
332
                    $data['definition'][] = $this->readType();
333
                }
334
                return $data;
335
            default:
336
                return $type;