Code Duplication    Length = 3-3 lines in 2 locations

app/library/Services/MatchService.php 2 locations

@@ 161-163 (lines=3) @@
158
            $match3['match_id'] = $matchdata['match_id'];  // This is generated below and passed to listener
159
            $match3['team_id'] = $matchUp3[0][0]['team'];
160
            $match3['player1'] = $matchUp3[0][0]['player_id'];
161
            if(isset($matchUp3[0][1]['player_id'])){
162
                $match3['player2'] = $matchUp3[0][1]['player_id'];
163
            }
164
165
            $match3['opponent'] = $matchUp3[1][0]['team'];
166
            $this->teammatch->create($match3); //save to match table
@@ 171-173 (lines=3) @@
168
            $match3['match_id'] = $matchdata['match_id'];  // This is generated below and passed to listener
169
            $match3['team_id'] = $matchUp3[1][0]['team'];
170
            $match3['player1'] = $matchUp3[1][0]['player_id'];
171
            if(isset($matchUp3[1][1]['player_id'])){
172
                $match3['player2'] = $matchUp3[1][1]['player_id'];
173
            }
174
            $match3['opponent'] = $matchUp3[0][0]['team'];
175
            $this->teammatch->create($match3); //save to match table
176