Code Duplication    Length = 15-15 lines in 4 locations

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

@@ 346-360 (lines=15) @@
343
		return $netScores;
344
345
	}
346
	public function netScoresLeagueTop($number)
347
	{
348
		//get players
349
		$players = Player::all();
350
351
		$netScores = new \Illuminate\Support\Collection();
352
		foreach($players as $player){
353
			$netScore = $this->netScoresByPlayerTop($player->id, $number);
354
			if(!$netScore->isEmpty()){
355
				$netScores->push($netScore);
356
			}
357
		}
358
359
		return $netScores;
360
	}
361
	public function netScoresLeagueYear($year)
362
	{
363
		//get players
@@ 372-386 (lines=15) @@
369
		}
370
		return $netScores;
371
	}
372
	public function netScoresLeagueTopYear($top,$year)
373
	{
374
		//get players
375
		$players = Player::all();
376
377
		$netScores = new \Illuminate\Support\Collection();
378
		foreach($players as $player){
379
			$netScore = $this->netScoresByPlayerTopYear($player->id, $top, $year);
380
			if(!$netScore->isEmpty()){
381
				$netScores->push($netScore);
382
			}
383
		}
384
385
		return $netScores;
386
	}
387
388
	public function netCumulative()
389
	{
@@ 399-413 (lines=15) @@
396
		}
397
		return $cumulativeNetScores;
398
	}
399
	public function netCumulativeTop($top)
400
	{
401
		//get players
402
		$players = Player::all();
403
404
		$cumulativeNetScores = new \Illuminate\Support\Collection();
405
		foreach($players as $player){
406
			$netScore = $this->netCumulativeByPlayerTop($player->id, $top);
407
			if($netScore->isEmpty() == false){
408
				$cumulativeNetScores->push($netScore);
409
			}
410
		}
411
412
		return $cumulativeNetScores;
413
	}
414
	public function netCumulativeByPlayer($playerId)
415
	{
416
		$netScores = $this->netScoresByPlayer($playerId);
@@ 457-471 (lines=15) @@
454
		}
455
		return $cumulativeNetScores;
456
	}
457
	public function netCumulativeTopYear($top,$year)
458
	{
459
		//get players
460
		$players = Player::all();
461
462
		$cumulativeNetScores = new \Illuminate\Support\Collection();
463
		foreach($players as $player){
464
			$netScore = $this->netCumulativeByPlayerTopYear($player->id, $top, $year);
465
			if($netScore->isEmpty() == false){
466
				$cumulativeNetScores->push($netScore);
467
			}
468
		}
469
470
		return $cumulativeNetScores;
471
	}
472
	public function netCumulativeByPlayerYear($playerId,$year)
473
	{
474
		$netScores = $this->netScoresByPlayerYear($playerId, $year);