@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | factory(Leaderboard::class, 5) |
16 | 16 | ->create() |
17 | - ->each(function (Leaderboard $leaderboard) { |
|
17 | + ->each(function(Leaderboard $leaderboard) { |
|
18 | 18 | $leaderboard->game_id = rand(1, 3); |
19 | 19 | }); |
20 | 20 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | public function getHighscoreRank($highscore) |
73 | 73 | { |
74 | - return $this->hasMany(LeaderboardScore::class)->filter(function ($score) { |
|
74 | + return $this->hasMany(LeaderboardScore::class)->filter(function($score) { |
|
75 | 75 | return $score['highscore'] > $highscore; |
76 | 76 | }); |
77 | 77 | } |