1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 10:24:07 +02:00

fmt, typings, typos

This commit is contained in:
Robin Appelman 2022-05-16 00:51:50 +02:00
commit 7de4c35ab4
34 changed files with 644 additions and 1048 deletions

View file

@ -87,8 +87,7 @@ class DemoPlayer implements JsonSerializable {
/**
* @return array{'id': int, 'user_id': int, 'name': string, 'team': string, 'class': string, 'steamid': string, 'kills': int, 'assists': int, 'deaths': int}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize():array {
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'user_id' => $this->getUserId(),

View file

@ -28,6 +28,7 @@ class SteamUser implements JsonSerializable {
public function getName(): string {
return $this->name;
}
/**
* @return array{'id': int, 'name': string, 'steamid': string}
*/

View file

@ -34,11 +34,11 @@ class User implements JsonSerializable {
public function getToken(): string {
return $this->token;
}
/**
* @return array{'id': int, 'name': string, 'steamid': string}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'steamid' => $this->getSteamId(),