| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function getLeader($countryId, $roomRange, $roomInterval): JsonResponse |
||
| 26 | { |
||
| 27 | $leaderRank = 1; |
||
| 28 | |||
| 29 | foreach (($leaderBoard = Room::where('state', '!=', 'invisible')->orderBy('score', 'DESC')->orderBy('users', 'DESC')->limit(50)->get()) as $room) { |
||
| 30 | $room->leaderboardRank = $leaderRank++; |
||
| 31 | } |
||
| 32 | |||
| 33 | return response()->json($leaderBoard, 200, [], JSON_UNESCAPED_SLASHES); |
||
| 34 | } |
||
| 35 | |||
| 48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.