Code Duplication    Length = 5-5 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 255-259 (lines=5) @@
252
253
        //Run A Skins analysis
254
        $scores = array();
255
        foreach($aPlayersSkins as $key => $playerSkin){
256
            foreach($playerSkin['holescores'] as $hole => $holescore){
257
                $scores[$holescore['hole_id']][$playerSkin['player_id']] = $holescore['score'];
258
            }
259
        }
260
261
        foreach($scores as $hole_id => $hole) {
262
            $minScore = min($hole);
@@ 281-285 (lines=5) @@
278
279
        //Run B Skins analysis
280
        $scores = array();
281
        foreach($bPlayersSkins as $key => $playerSkin){
282
            foreach($playerSkin['holescores'] as $hole => $holescore){
283
                $scores[$holescore['hole_id']][$playerSkin['player_id']] = $holescore['score'];
284
            }
285
        }
286
287
        foreach($scores as $hole_id => $hole) {
288
            $minScore = min($hole);