Code Duplication    Length = 15-15 lines in 4 locations

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

@@ 314-328 (lines=15) @@
311
		return $netScores;
312
313
	}
314
	public function netScoresLeagueTop($number)
315
	{
316
		//get players
317
		$players = Player::all();
318
319
		$netScores = new \Illuminate\Support\Collection();
320
		foreach($players as $player){
321
			$netScore = $this->netScoresByPlayerTop($player->id, $number);
322
			if(!$netScore->isEmpty()){
323
				$netScores->push($netScore);
324
			}
325
		}
326
327
		return $netScores;
328
	}
329
	public function netScoresLeagueYear($year)
330
	{
331
		//get players
@@ 340-354 (lines=15) @@
337
		}
338
		return $netScores;
339
	}
340
	public function netScoresLeagueTopYear($top,$year)
341
	{
342
		//get players
343
		$players = Player::all();
344
345
		$netScores = new \Illuminate\Support\Collection();
346
		foreach($players as $player){
347
			$netScore = $this->netScoresByPlayerTopYear($player->id, $top, $year);
348
			if(!$netScore->isEmpty()){
349
				$netScores->push($netScore);
350
			}
351
		}
352
353
		return $netScores;
354
	}
355
356
	public function netCumulative()
357
	{
@@ 367-381 (lines=15) @@
364
		}
365
		return $cumulativeNetScores;
366
	}
367
	public function netCumulativeTop($top)
368
	{
369
		//get players
370
		$players = Player::all();
371
372
		$cumulativeNetScores = new \Illuminate\Support\Collection();
373
		foreach($players as $player){
374
			$netScore = $this->netCumulativeByPlayerTop($player->id, $top);
375
			if($netScore->isEmpty() == false){
376
				$cumulativeNetScores->push($netScore);
377
			}
378
		}
379
380
		return $cumulativeNetScores;
381
	}
382
	public function netCumulativeByPlayer($playerId)
383
	{
384
		$netScores = $this->netScoresByPlayer($playerId);
@@ 425-439 (lines=15) @@
422
		}
423
		return $cumulativeNetScores;
424
	}
425
	public function netCumulativeTopYear($top,$year)
426
	{
427
		//get players
428
		$players = Player::all();
429
430
		$cumulativeNetScores = new \Illuminate\Support\Collection();
431
		foreach($players as $player){
432
			$netScore = $this->netCumulativeByPlayerTopYear($player->id, $top, $year);
433
			if($netScore->isEmpty() == false){
434
				$cumulativeNetScores->push($netScore);
435
			}
436
		}
437
438
		return $cumulativeNetScores;
439
	}
440
	public function netCumulativeByPlayerYear($playerId,$year)
441
	{
442
		$netScores = $this->netScoresByPlayerYear($playerId, $year);