Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 237-245 (lines=9) @@
234
		});
235
236
		// Sort by netScore
237
		$rounds->sort(function($a, $b)
238
		{
239
			$a = $a->netScore;
240
			$b = $b->netScore;
241
			if ($a === $b) {
242
				return 0;
243
			}
244
			return ($a > $b) ? 1 : -1;
245
		});
246
247
		return $rounds;
248
@@ 284-292 (lines=9) @@
281
		});
282
283
		// Sort by netScore
284
		$rounds->sort(function($a, $b)
285
		{
286
			$a = $a->netScore;
287
			$b = $b->netScore;
288
			if ($a === $b) {
289
				return 0;
290
			}
291
			return ($a > $b) ? 1 : -1;
292
		});
293
294
		return $rounds;
295
	}