Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 1408-1412 (lines=5) @@
1405
                $weight = sprintf('%u', $weight);
1406
1407
                // create match entry
1408
                if ($this->arrayresult) {
1409
                    $result['matches'][$idx] = array('id' => $doc, 'weight' => $weight);
1410
                } else {
1411
                    $result['matches'][$doc]['weight'] = $weight;
1412
                }
1413
1414
                // parse and create attributes
1415
                $attrvals = array();
@@ 1463-1467 (lines=5) @@
1460
                    }
1461
                }
1462
1463
                if ($this->arrayresult) {
1464
                    $result['matches'][$idx]['attrs'] = $attrvals;
1465
                } else {
1466
                    $result['matches'][$doc]['attrs'] = $attrvals;
1467
                }
1468
            }
1469
1470
            list($total, $total_found, $msecs, $words) = array_values(unpack('N*N*N*N*', substr($response, $p, 16)));