Code Duplication    Length = 8-8 lines in 2 locations

app/library/Classes/Statistics/LeagueStatisticsEloquent.php 2 locations

@@ 250-257 (lines=8) @@
247
			->whereNotNull('match_id')->get();
248
249
		//for each round get match handicap
250
		$rounds->map(function($round)
251
		{
252
			$playerMatch = Player::find($round->player_id)->matches()->where('match_player.match_id','=', $round->match_id)->get();
253
			foreach($playerMatch as $player){
254
				$handicap = $player['pivot']['handicap'];
255
				$round->handicap = $handicap;
256
			}
257
		});
258
		//Calculate net score using match handicap
259
		$rounds->map(function($round)
260
		{
@@ 300-307 (lines=8) @@
297
			->whereNotNull('match_id')->get();
298
299
		//for each round get match handicap
300
		$rounds->map(function($round)
301
		{
302
			$playerMatch = Player::find($round->player_id)->matches()->where('match_player.match_id','=', $round->match_id)->get();
303
			foreach($playerMatch as $player){
304
				$handicap = $player['pivot']['handicap'];
305
				$round->handicap = $handicap;
306
			}
307
		});
308
		//Calculate net score using match handicap
309
		$rounds->map(function($round)
310
		{