Code Duplication    Length = 4-4 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 261-264 (lines=4) @@
258
            }
259
        }
260
261
        foreach($scores as $hole_id => $hole) {
262
            $minScore = min($hole);
263
            $winners[$hole_id] = array_keys($hole, min($hole)); //gets player id of lowest score
264
        }
265
        $aSkinsWon = 0;
266
        foreach($winners as $key => $winner) {
267
            if(count($winner)  ===  1) {
@@ 287-290 (lines=4) @@
284
            }
285
        }
286
287
        foreach($scores as $hole_id => $hole) {
288
            $minScore = min($hole);
289
            $winners[$hole_id] = array_keys($hole, min($hole)); //gets player id of lowest score
290
        }
291
        $bSkinsWon = 0;
292
        foreach($winners as $key => $winner) {
293
            if(count($winner)  ===  1) {