@@ -64,6 +64,7 @@ public static function getServerStats(?string $server_name = null, string $retur
6464 if ($ returnType === 'collection ' ) {
6565 return $ response ->collect ()
6666 }
67+
6768 return $ response ->json ();
6869 }
6970
@@ -97,6 +98,7 @@ public static function getServerList(string $returnType = 'json'): mixed
9798 if ($ returnType === 'collection ' ) {
9899 return $ response ->collect ()
99100 }
101+
100102 return $ response ->json ();
101103 }
102104
@@ -118,6 +120,7 @@ public static function getSquadronList(?int $limit = null, ?int $offset = null,
118120 if ($ returnType === 'collection ' ) {
119121 return $ response ->collect ()
120122 }
123+
121124 return $ response ->json ();
122125 }
123126
@@ -137,6 +140,7 @@ public static function getSquadronMembers(string $squadronName, string $returnTy
137140 if ($ returnType === 'collection ' ) {
138141 return $ response ->collect ()
139142 }
143+
140144 return $ response ->json ();
141145 }
142146
@@ -156,6 +160,7 @@ public static function getUser(string $nick, string $returnType = 'json'): mixed
156160 if ($ returnType === 'collection ' ) {
157161 return $ response ->collect ()
158162 }
163+
159164 return $ response ->json ();
160165 }
161166
@@ -184,6 +189,7 @@ public static function linkMe(string $discord_id, ?bool $force = null, string $r
184189 if ($ returnType === 'collection ' ) {
185190 return $ response ->collect ()
186191 }
192+
187193 return $ response ->json ();
188194 }
189195
@@ -207,6 +213,7 @@ public static function getPlayerSquadrons(string $nick, ?string $date = null, st
207213 if ($ returnType === 'collection ' ) {
208214 return $ response ->collect ()
209215 }
216+
210217 return $ response ->json ();
211218 }
212219
@@ -223,10 +230,7 @@ public static function getPlayerSquadrons(string $nick, ?string $date = null, st
223230 /**
224231 * Get top kills for a server.
225232 *
226- * @param string|null $server_name
227- * @param int|null $limit
228- * @param int|null $offset
229- * @param string $returnType 'json' (default) or 'collection'
233+ * @param string $returnType 'json' (default) or 'collection'
230234 * @return array|\Illuminate\Support\Collection
231235 */
232236 public static function getTopKills (?string $ server_name = null , ?int $ limit = 10 , ?int $ offset = null , string $ returnType = 'json ' ): mixed
@@ -240,6 +244,7 @@ public static function getTopKills(?string $server_name = null, ?int $limit = 10
240244 if ($ returnType === 'collection ' ) {
241245 return $ response ->collect ()
242246 }
247+
243248 return $ response ->json ();
244249 }
245250
@@ -264,6 +269,7 @@ public static function getTopKDR(?string $server_name = null, ?int $limit = 10,
264269 if ($ returnType === 'collection ' ) {
265270 return $ response ->collect ()
266271 }
272+
267273 return $ response ->json ();
268274 }
269275
@@ -289,6 +295,7 @@ public static function getTrueSkillStats(?string $server_name = null, ?int $limi
289295 if ($ returnType === 'collection ' ) {
290296 return $ response ->collect ()
291297 }
298+
292299 return $ response ->json ();
293300 }
294301
@@ -314,6 +321,7 @@ public static function getWeaponPK(?string $server_name, string $nick, ?string $
314321 if ($ returnType === 'collection ' ) {
315322 return $ response ->collect ()
316323 }
324+
317325 return $ response ->json ();
318326 }
319327
@@ -339,6 +347,7 @@ public static function getStats(?string $server_name, string $nick, ?string $dat
339347 if ($ returnType === 'collection ' ) {
340348 return $ response ->collect ()
341349 }
350+
342351 return $ response ->json ();
343352 }
344353
@@ -364,6 +373,7 @@ public static function getPlayerInfo(?string $server_name, string $nick, ?string
364373 if ($ returnType === 'collection ' ) {
365374 return $ response ->collect ()
366375 }
376+
367377 return $ response ->json ();
368378 }
369379
@@ -389,6 +399,7 @@ public static function getHighscore(?string $server_name = null, ?int $limit = 1
389399 if ($ returnType === 'collection ' ) {
390400 return $ response ->collect ()
391401 }
402+
392403 return $ response ->json ();
393404 }
394405
@@ -417,6 +428,7 @@ public static function getTraps(string $nick, ?string $server_name = null, ?int
417428 if ($ returnType === 'collection ' ) {
418429 return $ response ->collect ()
419430 }
431+
420432 return $ response ->json ();
421433 }
422434
@@ -442,6 +454,7 @@ public static function getCredits(string $nick, ?string $date = null, ?string $c
442454 if ($ returnType === 'collection ' ) {
443455 return $ response ->collect ()
444456 }
457+
445458 return $ response ->json ();
446459 }
447460
@@ -465,6 +478,7 @@ public static function getSquadronCredits(string $name, ?string $campaign = null
465478 if ($ returnType === 'collection ' ) {
466479 return $ response ->collect ()
467480 }
481+
468482 return $ response ->json ();
469483 }
470484}
0 commit comments