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:
parent
eb997b5ba2
commit
7de4c35ab4
34 changed files with 644 additions and 1048 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ class SteamUser implements JsonSerializable {
|
|||
public function getName(): string {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{'id': int, 'name': string, 'steamid': string}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue