Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 1398-1402 (lines=5) @@
1395
                    if ($type == SPH_ATTR_MULTI) {
1396
                        $attrvals[$attr] = array();
1397
                        $nvalues = $val;
1398
                        while ($nvalues --> 0 && $p < $max) {
1399
                            list(, $val) = unpack('N*', substr($response, $p, 4));
1400
                            $p += 4;
1401
                            $attrvals[$attr][] = sphFixUint($val);
1402
                        }
1403
                    } elseif ($type == SPH_ATTR_MULTI64) {
1404
                        $attrvals[$attr] = array();
1405
                        $nvalues = $val;
@@ 1406-1410 (lines=5) @@
1403
                    } elseif ($type == SPH_ATTR_MULTI64) {
1404
                        $attrvals[$attr] = array();
1405
                        $nvalues = $val;
1406
                        while ($nvalues > 0 && $p < $max) {
1407
                            $attrvals[$attr][] = sphUnpackI64(substr($response, $p, 8));
1408
                            $p += 8;
1409
                            $nvalues -= 2;
1410
                        }
1411
                    } elseif ($type == SPH_ATTR_STRING) {
1412
                        $attrvals[$attr] = substr($response, $p, $val);
1413
                        $p += $val;