Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 1439-1443 (lines=5) @@
1436
                    if ($type == SPH_ATTR_MULTI) {
1437
                        $attrvals[$attr] = array();
1438
                        $nvalues = $val;
1439
                        while ($nvalues --> 0 && $p < $max) {
1440
                            list(, $val) = unpack('N*', substr($response, $p, 4));
1441
                            $p += 4;
1442
                            $attrvals[$attr][] = sphFixUint($val);
1443
                        }
1444
                    } elseif ($type == SPH_ATTR_MULTI64) {
1445
                        $attrvals[$attr] = array();
1446
                        $nvalues = $val;
@@ 1447-1451 (lines=5) @@
1444
                    } elseif ($type == SPH_ATTR_MULTI64) {
1445
                        $attrvals[$attr] = array();
1446
                        $nvalues = $val;
1447
                        while ($nvalues > 0 && $p < $max) {
1448
                            $attrvals[$attr][] = sphUnpackI64(substr($response, $p, 8));
1449
                            $p += 8;
1450
                            $nvalues -= 2;
1451
                        }
1452
                    } elseif ($type == SPH_ATTR_STRING) {
1453
                        $attrvals[$attr] = substr($response, $p, $val);
1454
                        $p += $val;