Code Duplication    Length = 4-4 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 256-259 (lines=4) @@
253
        //Create Skins arrays
254
        //player_id, 'holescores'
255
        foreach($matchRound as $key => $round) {
256
            if (in_array($round->player_id,$aPlayers)){
257
                $aPlayersSkins[$key]['player_id'] = $round->player_id;
258
                $aPlayersSkins[$key]['holescores'] = $round->holescores;
259
            }
260
            if (in_array($round->player_id,$bPlayers)){
261
                $bPlayersSkins[$key]['player_id'] = $round->player_id;
262
                $bPlayersSkins[$key]['holescores'] = $round->holescores;
@@ 260-263 (lines=4) @@
257
                $aPlayersSkins[$key]['player_id'] = $round->player_id;
258
                $aPlayersSkins[$key]['holescores'] = $round->holescores;
259
            }
260
            if (in_array($round->player_id,$bPlayers)){
261
                $bPlayersSkins[$key]['player_id'] = $round->player_id;
262
                $bPlayersSkins[$key]['holescores'] = $round->holescores;
263
            }
264
        }
265
266
        //Run A Skins analysis