Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

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