Code Duplication    Length = 5-5 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 268-272 (lines=5) @@
265
266
        //Run A Skins analysis
267
        $scores = array();
268
        foreach($aPlayersSkins as $key => $playerSkin){
269
            foreach($playerSkin['holescores'] as $hole => $holescore){
270
                $scores[$holescore['hole_id']][$playerSkin['player_id']] = $holescore['score'];
271
            }
272
        }
273
274
        foreach($scores as $hole_id => $hole) {
275
            $minScore = min($hole);
@@ 294-298 (lines=5) @@
291
292
        //Run B Skins analysis
293
        $scores = array();
294
        foreach($bPlayersSkins as $key => $playerSkin){
295
            foreach($playerSkin['holescores'] as $hole => $holescore){
296
                $scores[$holescore['hole_id']][$playerSkin['player_id']] = $holescore['score'];
297
            }
298
        }
299
300
        foreach($scores as $hole_id => $hole) {
301
            $minScore = min($hole);