Passed
Push — master ( a55231...260ede )
by Richard
03:42
created
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.
database/seeds/LeaderboardTableSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         factory(Leaderboard::class, 3)
17 17
             ->create()
18
-            ->each(function (Leaderboard $leaderboard, $index) {
18
+            ->each(function(Leaderboard $leaderboard, $index) {
19 19
                 $leaderboard->game_id = 1;
20 20
                 $leaderboard->timescope = $index; // Create all-time, daily and weekly leaderboards
21 21
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                 if ($index > 0) {
24 24
                     factory(LeaderboardReward::class, 5)
25 25
                         ->create()
26
-                        ->each(function (LeaderboardReward $leaderboardReward, $index) {
26
+                        ->each(function(LeaderboardReward $leaderboardReward, $index) {
27 27
                             $leaderboardReward->leaderboard_id = $leaderboard->id;
28 28
                             $leaderboardReward->highscore_rank = $index + 1;
29 29
                             $leaderboardReward->amount = (6 - $index) * 100;
Please login to merge, or discard this patch.