Code Duplication    Length = 5-5 lines in 2 locations

src/Sphinx/Client.php 2 locations

@@ 1525-1529 (lines=5) @@
1522
                    if ($type == self::ATTR_MULTI) {
1523
                        $attrvals[$attr] = array();
1524
                        $nvalues = $val;
1525
                        while ($nvalues --> 0 && $p < $max) {
1526
                            list(, $val) = unpack('N*', substr($response, $p, 4));
1527
                            $p += 4;
1528
                            $attrvals[$attr][] = sphFixUint($val);
1529
                        }
1530
                    } elseif ($type == self::ATTR_MULTI64) {
1531
                        $attrvals[$attr] = array();
1532
                        $nvalues = $val;
@@ 1533-1537 (lines=5) @@
1530
                    } elseif ($type == self::ATTR_MULTI64) {
1531
                        $attrvals[$attr] = array();
1532
                        $nvalues = $val;
1533
                        while ($nvalues > 0 && $p < $max) {
1534
                            $attrvals[$attr][] = sphUnpackI64(substr($response, $p, 8));
1535
                            $p += 8;
1536
                            $nvalues -= 2;
1537
                        }
1538
                    } elseif ($type == self::ATTR_STRING) {
1539
                        $attrvals[$attr] = substr($response, $p, $val);
1540
                        $p += $val;