Test Setup Failed
Branch master (a55231)
by Richard
04:51
created
database/seeds/LeaderboardTableSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
routes/api.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use Furic\Leaderboards\Http\Controllers\LeaderboardController;
5 5
 
6 6
 Route::prefix('api')->group(function() {
7
-	Route::get('leaderboards/{id}', [LeaderboardController::class, 'show']);
7
+    Route::get('leaderboards/{id}', [LeaderboardController::class, 'show']);
8 8
     Route::get('leaderboards/{id}/current', [LeaderboardController::class, 'showCurrent']);
9 9
     Route::get('leaderboards/{id}/score-sums', [LeaderboardController::class, 'showScoreSums']);
10 10
     Route::get('leaderboards/{id}/highscores', [LeaderboardController::class, 'showHighscores']);
Please login to merge, or discard this patch.
src/Models/LeaderboardTimescope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.