Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 230-234 (lines=5) @@
227
			}
228
		});
229
		//Calculate net score using match handicap
230
		$rounds->map(function($round)
231
		{
232
			$net = ($round->score - round($round->handicap));
233
			return $round->netScore = ($net - $round->course->par);
234
		});
235
236
		// Sort by netScore
237
		$rounds->sort(function($a, $b)
@@ 277-281 (lines=5) @@
274
			}
275
		});
276
		//Calculate net score using match handicap
277
		$rounds->map(function($round)
278
		{
279
			$net = ($round->score - round($round->handicap));
280
			return $round->netScore = ($net - $round->course->par);
281
		});
282
283
		// Sort by netScore
284
		$rounds->sort(function($a, $b)