Passed
Push — main ( 8c6c55...1af2d8 )
by Miaad
12:23 queued 14s
created
src/types/reactionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public string $custom_emoji;
29 29
 
30 30
 
31
-    public function __construct(stdClass|null $object = null) {
31
+    public function __construct(stdClass | null $object = null) {
32 32
         if ($object != null) {
33 33
             parent::__construct($object, self::subs);
34 34
         }
Please login to merge, or discard this patch.
src/types/replyParameters.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@  discard block
 block discarded – undo
15 15
      * Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is
16 16
      * specified
17 17
      */
18
-    public null|int $message_id;
18
+    public null | int $message_id;
19 19
 
20 20
     /**
21 21
      * Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username
22 22
      * of the channel (in the format channelusername)
23 23
      */
24
-    public null|int $chat_id = null;
24
+    public null | int $chat_id = null;
25 25
 
26 26
     /**
27 27
      * Optional. Pass True if the message should be sent even if the specified message to be replied to is not found;
28 28
      * can be used only for replies in the same chat and forum topic.
29 29
      */
30
-    public null|bool $allow_sending_without_reply = null;
30
+    public null | bool $allow_sending_without_reply = null;
31 31
 
32 32
     /**
33 33
      * Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
      * spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original
36 36
      * message.
37 37
      */
38
-    public null|string $quote = null;
38
+    public null | string $quote = null;
39 39
 
40 40
     /** Optional. Mode for parsing entities in the quote. See formatting options for more details. */
41
-    public null|string $quote_parse_mode = null;
41
+    public null | string $quote_parse_mode = null;
42 42
 
43 43
     /**
44 44
      * Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of
45 45
      * quote_parse_mode.
46 46
      * @var messageEntity[]
47 47
      */
48
-    public null|array $quote_entities = null;
48
+    public null | array $quote_entities = null;
49 49
 
50 50
     /** Optional. Position of the quote in the original message in UTF-16 code units */
51
-    public null|int $quote_position = null;
51
+    public null | int $quote_position = null;
52 52
 
53 53
 
54
-    public function __construct(stdClass|null $object = null) {
54
+    public function __construct(stdClass | null $object = null) {
55 55
         if ($object != null) {
56 56
             parent::__construct($object, self::subs);
57 57
         }
Please login to merge, or discard this patch.
src/types/keyboardButtonRequestUsers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@
 block discarded – undo
22 22
      * Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional
23 23
      * restrictions are applied.
24 24
      */
25
-    public null|bool $user_is_bot = null;
25
+    public null | bool $user_is_bot = null;
26 26
 
27 27
     /**
28 28
      * Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no
29 29
      * additional restrictions are applied.
30 30
      */
31
-    public null|bool $user_is_premium = null;
31
+    public null | bool $user_is_premium = null;
32 32
 
33 33
     /** Optional. The maximum number of users to be selected; 1-10. Defaults to 1. */
34
-    public null|int $max_quantity = null;
34
+    public null | int $max_quantity = null;
35 35
 
36 36
 
37
-    public function __construct(stdClass|null $object = null) {
37
+    public function __construct(stdClass | null $object = null) {
38 38
         if ($object != null) {
39 39
             parent::__construct($object, self::subs);
40 40
         }
Please login to merge, or discard this patch.
src/types/chat.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -31,140 +31,140 @@  discard block
 block discarded – undo
31 31
     public string $type;
32 32
 
33 33
     /** Optional. Title, for supergroups, channels and group chats */
34
-    public null|string $title = null;
34
+    public null | string $title = null;
35 35
 
36 36
     /** Optional. Username, for private chats, supergroups and channels if available */
37
-    public null|string $username = null;
37
+    public null | string $username = null;
38 38
 
39 39
     /** Optional. First name of the other party in a private chat */
40
-    public null|string $first_name = null;
40
+    public null | string $first_name = null;
41 41
 
42 42
     /** Optional. Last name of the other party in a private chat */
43
-    public null|string $last_name = null;
43
+    public null | string $last_name = null;
44 44
 
45 45
     /** Optional. True, if the supergroup chat is a forum (has topics enabled) */
46
-    public null|bool $is_forum = null;
46
+    public null | bool $is_forum = null;
47 47
 
48 48
     /** Optional. Chat photo. Returned only in getChat. */
49
-    public null|chatPhoto $photo = null;
49
+    public null | chatPhoto $photo = null;
50 50
 
51 51
     /** Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. */
52
-    public null|array $active_usernames = null;
52
+    public null | array $active_usernames = null;
53 53
 
54 54
     /**
55 55
      * Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
56 56
      * Returned only in getChat.
57 57
      * @var reactionType[]
58 58
      */
59
-    public null|array $available_reactions = null;
59
+    public null | array $available_reactions = null;
60 60
 
61 61
     /**
62 62
      * Optional. Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header,
63 63
      * and link preview. See accent colors for more details. Returned only in getChat. Always returned in getChat.
64 64
      */
65
-    public null|int $accent_color_id = null;
65
+    public null | int $accent_color_id = null;
66 66
 
67 67
     /**
68 68
      * Optional. Custom emoji identifier of emoji chosen by the chat for the reply header and link preview
69 69
      * background. Returned only in getChat.
70 70
      */
71
-    public null|string $background_custom_emoji_id = null;
71
+    public null | string $background_custom_emoji_id = null;
72 72
 
73 73
     /**
74 74
      * Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more
75 75
      * details. Returned only in getChat.
76 76
      */
77
-    public null|int $profile_accent_color_id = null;
77
+    public null | int $profile_accent_color_id = null;
78 78
 
79 79
     /**
80 80
      * Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background. Returned only in
81 81
      * getChat.
82 82
      */
83
-    public null|string $profile_background_custom_emoji_id = null;
83
+    public null | string $profile_background_custom_emoji_id = null;
84 84
 
85 85
     /** Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. */
86
-    public null|string $emoji_status_custom_emoji_id = null;
86
+    public null | string $emoji_status_custom_emoji_id = null;
87 87
 
88 88
     /**
89 89
      * Optional. Expiration date of the emoji status of the other party in a private chat, if any.
90 90
      * Returned only in getChat.
91 91
      */
92
-    public null|int $emoji_status_expiration_date;
92
+    public null | int $emoji_status_expiration_date;
93 93
 
94 94
     /** Optional. Bio of the other party in a private chat. Returned only in getChat. */
95
-    public null|string $bio = null;
95
+    public null | string $bio = null;
96 96
 
97 97
     /**
98 98
      * Optional. True, if privacy settings of the other party in the private chat allows to use
99 99
      * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
100 100
      */
101
-    public null|bool $has_private_forwards = null;
101
+    public null | bool $has_private_forwards = null;
102 102
 
103 103
     /**
104 104
      * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in
105 105
      * the private chat. Returned only in getChat.
106 106
      */
107
-    public null|bool $has_restricted_voice_and_video_messages = null;
107
+    public null | bool $has_restricted_voice_and_video_messages = null;
108 108
 
109 109
     /** Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. */
110
-    public null|bool $join_to_send_messages = null;
110
+    public null | bool $join_to_send_messages = null;
111 111
 
112 112
     /**
113 113
      * Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators.
114 114
      * Returned only in getChat.
115 115
      */
116
-    public null|bool $join_by_request = null;
116
+    public null | bool $join_by_request = null;
117 117
 
118 118
     /** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */
119
-    public null|string $description = null;
119
+    public null | string $description = null;
120 120
 
121 121
     /** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */
122
-    public null|string $invite_link = null;
122
+    public null | string $invite_link = null;
123 123
 
124 124
     /** Optional. The most recent pinned message (by sending date). Returned only in getChat. */
125
-    public null|message $pinned_message = null;
125
+    public null | message $pinned_message = null;
126 126
 
127 127
     /** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */
128
-    public null|chatPermissions $permissions = null;
128
+    public null | chatPermissions $permissions = null;
129 129
 
130 130
     /**
131 131
      * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged
132 132
      * user; in seconds. Returned only in getChat.
133 133
      */
134
-    public null|int $slow_mode_delay = null;
134
+    public null | int $slow_mode_delay = null;
135 135
 
136 136
     /**
137 137
      * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds.
138 138
      * Returned only in getChat.
139 139
      */
140
-    public null|int $message_auto_delete_time = null;
140
+    public null | int $message_auto_delete_time = null;
141 141
 
142 142
     /**
143 143
      * Optional. True, if aggressive anti-spam checks are enabled in the supergroup.
144 144
      * The field is only available to chat administrators. Returned only in getChat.
145 145
      */
146
-    public null|bool $has_aggressive_anti_spam_enabled = null;
146
+    public null | bool $has_aggressive_anti_spam_enabled = null;
147 147
 
148 148
     /**
149 149
      * Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
150 150
      * Returned only in getChat.
151 151
      */
152
-    public null|bool $has_hidden_members = null;
152
+    public null | bool $has_hidden_members = null;
153 153
 
154 154
     /** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */
155
-    public null|bool $has_protected_content = null;
155
+    public null | bool $has_protected_content = null;
156 156
 
157 157
     /**
158 158
      * Optional. True, if new chat members will have access to old messages; available only to chat administrators.
159 159
      * Returned only in getChat.
160 160
      */
161
-    public null|bool $has_visible_history = null;
161
+    public null | bool $has_visible_history = null;
162 162
 
163 163
     /** Optional. For supergroups, name of group sticker set. Returned only in getChat. */
164
-    public null|string $sticker_set_name = null;
164
+    public null | string $sticker_set_name = null;
165 165
 
166 166
     /** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */
167
-    public null|bool $can_set_sticker_set = null;
167
+    public null | bool $can_set_sticker_set = null;
168 168
 
169 169
     /**
170 170
      * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
      * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed
173 173
      * 64-bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.
174 174
      */
175
-    public null|int $linked_chat_id = null;
175
+    public null | int $linked_chat_id = null;
176 176
 
177 177
     /** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
178
-    public null|chatLocation $location = null;
178
+    public null | chatLocation $location = null;
179 179
 
180 180
 
181
-    public function __construct(stdClass|null $object = null) {
181
+    public function __construct(stdClass | null $object = null) {
182 182
         if ($object != null) {
183 183
             parent::__construct($object, self::subs);
184 184
         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @return bool
191 191
      */
192
-    public function isPrivate (): bool {
192
+    public function isPrivate(): bool {
193 193
         return $this->type === chatType::PRIVATE;
194 194
     }
195 195
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      *
199 199
      * @return bool
200 200
      */
201
-    public function isGroup (): bool {
201
+    public function isGroup(): bool {
202 202
         return $this->type === chatType::GROUP;
203 203
     }
204 204
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      *
208 208
      * @return bool
209 209
      */
210
-    public function isSuperGroup (): bool {
210
+    public function isSuperGroup(): bool {
211 211
         return $this->type === chatType::SUPERGROUP;
212 212
     }
213 213
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @return bool
218 218
      */
219
-    public function isChannel (): bool {
219
+    public function isChannel(): bool {
220 220
         return $this->type === chatType::CHANNEL;
221 221
     }
222 222
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      *
226 226
      * @return responseError|bool
227 227
      */
228
-    public function leave(): responseError|bool {
228
+    public function leave(): responseError | bool {
229 229
         if ($this->isPrivate()) {
230 230
             return false;
231 231
         }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @return responseError|bool
242 242
      */
243
-    public function setPhoto(CURLFile|array $photo, bool $answer = null): responseError|bool {
243
+    public function setPhoto(CURLFile | array $photo, bool $answer = null): responseError | bool {
244 244
         if ($this->isPrivate()) {
245 245
             return false;
246 246
         }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      *
255 255
      * @return responseError|bool
256 256
      */
257
-    public function delPhoto(bool $answer = null): responseError|bool {
257
+    public function delPhoto(bool $answer = null): responseError | bool {
258 258
         if ($this->isPrivate()) {
259 259
             return false;
260 260
         }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      *
270 270
      * @return responseError|bool
271 271
      */
272
-    public function setTitle(string|array $title, bool $answer = null): responseError|bool {
272
+    public function setTitle(string | array $title, bool $answer = null): responseError | bool {
273 273
         if ($this->isPrivate()) {
274 274
             return false;
275 275
         }
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      *
285 285
      * @return responseError|bool
286 286
      */
287
-    public function setDescription(string|null $description = null, bool $answer = null): responseError|bool {
287
+    public function setDescription(string | null $description = null, bool $answer = null): responseError | bool {
288 288
         if ($this->isPrivate()) {
289 289
             return false;
290 290
         }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      *
299 299
      * @return bool|responseError|array
300 300
      */
301
-    public function getAdmins(bool $answer = null): bool|responseError|array {
301
+    public function getAdmins(bool $answer = null): bool | responseError | array {
302 302
         if ($this->isPrivate()) {
303 303
             return false;
304 304
         }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      *
313 313
      * @return bool|responseError|int
314 314
      */
315
-    public function getMembersCount(bool $answer = null): bool|responseError|int {
315
+    public function getMembersCount(bool $answer = null): bool | responseError | int {
316 316
         if ($this->isPrivate()) {
317 317
             return false;
318 318
         }
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
      *
328 328
      * @return chatMember|bool|responseError
329 329
      */
330
-    public function getMember(int|null $user_id = null, bool $answer = null): chatMember|bool|responseError {
330
+    public function getMember(int | null $user_id = null, bool $answer = null): chatMember | bool | responseError {
331 331
         if ($this->isPrivate()) {
332 332
             return false;
333 333
         }
Please login to merge, or discard this patch.
src/types/reactionCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public int $total_count;
19 19
 
20 20
 
21
-    public function __construct(stdClass|null $object = null) {
21
+    public function __construct(stdClass | null $object = null) {
22 22
         if ($object != null) {
23 23
             parent::__construct($object, self::subs);
24 24
         }
Please login to merge, or discard this patch.
src/types/messageOrigin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,28 +18,28 @@
 block discarded – undo
18 18
     public int $date;
19 19
 
20 20
     /** `user` only. User that sent the message originally */
21
-    public null|user $sender_user = null;
21
+    public null | user $sender_user = null;
22 22
 
23 23
     /** `hidden_user` only. Name of the user that sent the message originally */
24
-    public null|string $sender_user_name = null;
24
+    public null | string $sender_user_name = null;
25 25
 
26 26
     /** `chat` only. Chat that sent the message originally */
27
-    public null|chat $sender_chat = null;
27
+    public null | chat $sender_chat = null;
28 28
 
29 29
     /**
30 30
      * `chat` and `channel` only. Signature of the original post author, For messages originally sent by an anonymous
31 31
      * chat administrator, original message author signature
32 32
      */
33
-    public null|string $author_signature = null;
33
+    public null | string $author_signature = null;
34 34
 
35 35
     /** `channel` only. Channel chat to which the message was originally sent */
36
-    public null|chat $chat = null;
36
+    public null | chat $chat = null;
37 37
 
38 38
     /** `channel` only. Unique message identifier inside the chat */
39
-    public null|int $message_id = null;
39
+    public null | int $message_id = null;
40 40
 
41 41
 
42
-    public function __construct(stdClass|null $object = null) {
42
+    public function __construct(stdClass | null $object = null) {
43 43
         if ($object != null) {
44 44
             parent::__construct($object, self::subs);
45 45
         }
Please login to merge, or discard this patch.