Passed
Push — main ( 8ead35...8419ca )
by Richard
05:14
created
src/Http/Controllers/LeaderboardController.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,8 +70,9 @@  discard block
 block discarded – undo
70 70
         $scoresCol = $leaderboard->currentTimescope->orderedScoresByScoreSum;
71 71
 
72 72
         $limit = 20;
73
-        if ($request->input('limit'))
74
-            $limit = $request->limit;
73
+        if ($request->input('limit')) {
74
+                    $limit = $request->limit;
75
+        }
75 76
 
76 77
         if ($request->filled('player_id')) { // If specific player
77 78
             
@@ -159,8 +160,9 @@  discard block
 block discarded – undo
159 160
         $scoresCount = $scoresCol->count();
160 161
 
161 162
         $limit = 20;
162
-        if ($request->input('limit'))
163
-            $limit = $request->limit;
163
+        if ($request->input('limit')) {
164
+                    $limit = $request->limit;
165
+        }
164 166
         
165 167
         $topScoresCol = $scoresCol->slice(0, $limit);
166 168
         $rank = 1;
Please login to merge, or discard this patch.