@@ -82,7 +82,7 @@ |
||
82 | 82 | public bool $request_photo; |
83 | 83 | |
84 | 84 | |
85 | - public function __construct(stdClass|null $object = null) { |
|
85 | + public function __construct(stdClass | null $object = null) { |
|
86 | 86 | if ($object != null) { |
87 | 87 | parent::__construct($object, self::subs); |
88 | 88 | } |
@@ -38,19 +38,19 @@ discard block |
||
38 | 38 | * Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events |
39 | 39 | * only. |
40 | 40 | */ |
41 | - public null|chatInviteLink $invite_link = null; |
|
41 | + public null | chatInviteLink $invite_link = null; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Optional. True, if the user joined the chat after sending a direct join request without using an invite link |
45 | 45 | * and being approved by an administrator |
46 | 46 | */ |
47 | - public null|bool $via_join_request = null; |
|
47 | + public null | bool $via_join_request = null; |
|
48 | 48 | |
49 | 49 | /** Optional. True, if the user joined the chat via a chat folder invite link */ |
50 | - public null|bool $via_chat_folder_invite_link = null; |
|
50 | + public null | bool $via_chat_folder_invite_link = null; |
|
51 | 51 | |
52 | 52 | |
53 | - public function __construct(stdClass|null $object = null) { |
|
53 | + public function __construct(stdClass | null $object = null) { |
|
54 | 54 | if ($object != null) { |
55 | 55 | parent::__construct($object, self::subs); |
56 | 56 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return bool |
81 | 81 | */ |
82 | - public function isMe (): bool { |
|
82 | + public function isMe(): bool { |
|
83 | 83 | return $this->new_chat_member->user->id == settings::$bot_id; |
84 | 84 | } |
85 | 85 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @return bool |
117 | 117 | */ |
118 | - public function isLeaved (): bool { |
|
118 | + public function isLeaved(): bool { |
|
119 | 119 | return $this->new_chat_member->status === chatMemberStatus::LEFT; |
120 | 120 | } |
121 | 121 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @return bool |
126 | 126 | */ |
127 | - public function isKicked (): bool { |
|
127 | + public function isKicked(): bool { |
|
128 | 128 | return $this->new_chat_member->status === chatMemberStatus::KICKED; |
129 | 129 | } |
130 | 130 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @return bool |
135 | 135 | */ |
136 | - public function isOldAdmin (): bool { |
|
136 | + public function isOldAdmin(): bool { |
|
137 | 137 | return $this->old_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
138 | 138 | } |
139 | 139 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @return bool |
144 | 144 | */ |
145 | - public function isNewAdmin (): bool { |
|
145 | + public function isNewAdmin(): bool { |
|
146 | 146 | return $this->new_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
147 | 147 | } |
148 | 148 | } |