Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 1863-1867 (lines=5) @@
1860
                    if ($type == SPH_ATTR_MULTI) {
1861
                        $attrvals[$attr] = array();
1862
                        $nvalues = $val;
1863
                        while ($nvalues --> 0 && $p < $max) {
1864
                            list(, $val) = unpack('N*', substr($response, $p, 4));
1865
                            $p += 4;
1866
                            $attrvals[$attr][] = sphFixUint($val);
1867
                        }
1868
                    } elseif ($type == SPH_ATTR_MULTI64) {
1869
                        $attrvals[$attr] = array();
1870
                        $nvalues = $val;
@@ 1871-1875 (lines=5) @@
1868
                    } elseif ($type == SPH_ATTR_MULTI64) {
1869
                        $attrvals[$attr] = array();
1870
                        $nvalues = $val;
1871
                        while ($nvalues > 0 && $p < $max) {
1872
                            $attrvals[$attr][] = sphUnpackI64(substr($response, $p, 8));
1873
                            $p += 8;
1874
                            $nvalues -= 2;
1875
                        }
1876
                    } elseif ($type == SPH_ATTR_STRING) {
1877
                        $attrvals[$attr] = substr($response, $p, $val);
1878
                        $p += $val;