Code Duplication    Length = 5-5 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 1371-1375 (lines=5) @@
1368
                $weight = sprintf('%u', $weight);
1369
1370
                // create match entry
1371
                if ($this->array_result) {
1372
                    $result['matches'][$idx] = array('id' => $doc, 'weight' => $weight);
1373
                } else {
1374
                    $result['matches'][$doc]['weight'] = $weight;
1375
                }
1376
1377
                // parse and create attributes
1378
                $attrvals = array();
@@ 1426-1430 (lines=5) @@
1423
                    }
1424
                }
1425
1426
                if ($this->array_result) {
1427
                    $result['matches'][$idx]['attrs'] = $attrvals;
1428
                } else {
1429
                    $result['matches'][$doc]['attrs'] = $attrvals;
1430
                }
1431
            }
1432
1433
            list($total, $total_found, $msecs, $words) = array_values(unpack('N*N*N*N*', substr($response, $p, 16)));