Code Duplication    Length = 4-4 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 243-246 (lines=4) @@
240
        //Create Skins arrays
241
        //player_id, 'holescores'
242
        foreach($matchRound as $key => $round) {
243
            if (in_array($round->player_id,$aPlayers)){
244
                $aPlayersSkins[$key]['player_id'] = $round->player_id;
245
                $aPlayersSkins[$key]['holescores'] = $round->holescores;
246
            }
247
            if (in_array($round->player_id,$bPlayers)){
248
                $bPlayersSkins[$key]['player_id'] = $round->player_id;
249
                $bPlayersSkins[$key]['holescores'] = $round->holescores;
@@ 247-250 (lines=4) @@
244
                $aPlayersSkins[$key]['player_id'] = $round->player_id;
245
                $aPlayersSkins[$key]['holescores'] = $round->holescores;
246
            }
247
            if (in_array($round->player_id,$bPlayers)){
248
                $bPlayersSkins[$key]['player_id'] = $round->player_id;
249
                $bPlayersSkins[$key]['holescores'] = $round->holescores;
250
            }
251
        }
252
253
        //Run A Skins analysis