Code Duplication    Length = 4-4 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 274-277 (lines=4) @@
271
            }
272
        }
273
274
        foreach($scores as $hole_id => $hole) {
275
            $minScore = min($hole);
276
            $winners[$hole_id] = array_keys($hole, min($hole)); //gets player id of lowest score
277
        }
278
        $aSkinsWon = 0;
279
        foreach($winners as $key => $winner) {
280
            if(count($winner)  ===  1) {
@@ 300-303 (lines=4) @@
297
            }
298
        }
299
300
        foreach($scores as $hole_id => $hole) {
301
            $minScore = min($hole);
302
            $winners[$hole_id] = array_keys($hole, min($hole)); //gets player id of lowest score
303
        }
304
        $bSkinsWon = 0;
305
        foreach($winners as $key => $winner) {
306
            if(count($winner)  ===  1) {