Passed
Push — main ( 36dc31...e0778d )
by Miaad
10:46
created
src/types/businessMessagesDeleted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public array $message_ids;
28 28
 
29 29
 
30
-    public function __construct(stdClass|null $object = null) {
30
+    public function __construct(stdClass | null $object = null) {
31 31
         if ($object != null) {
32 32
             parent::__construct($object, self::subs);
33 33
         }
Please login to merge, or discard this patch.
src/types/businessIntro.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
     private const subs = ['sticker' => 'BPT\types\sticker'];
13 13
 
14 14
     /** Optional. Title text of the business intro */
15
-    public null|string $title = null;
15
+    public null | string $title = null;
16 16
 
17 17
     /** Optional. Message text of the business intro */
18
-    public null|string $message = null;
18
+    public null | string $message = null;
19 19
 
20 20
     /** Optional. Sticker of the business intro */
21
-    public null|sticker $sticker = null;
21
+    public null | sticker $sticker = null;
22 22
 
23 23
 
24
-    public function __construct(stdClass|null $object = null) {
24
+    public function __construct(stdClass | null $object = null) {
25 25
         if ($object != null) {
26 26
             parent::__construct($object, self::subs);
27 27
         }
Please login to merge, or discard this patch.
src/types/document.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,23 +23,23 @@  discard block
 block discarded – undo
23 23
     public string $file_unique_id;
24 24
 
25 25
     /** Optional. Document thumbnail as defined by sender */
26
-    public null|photoSize $thumbnail = null;
26
+    public null | photoSize $thumbnail = null;
27 27
 
28 28
     /** Optional. Original filename as defined by sender */
29
-    public null|string $file_name = null;
29
+    public null | string $file_name = null;
30 30
 
31 31
     /** Optional. MIME type of the file as defined by sender */
32
-    public null|string $mime_type = null;
32
+    public null | string $mime_type = null;
33 33
 
34 34
     /**
35 35
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
36 36
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
37 37
      * integer or double-precision float type are safe for storing this value.
38 38
      */
39
-    public null|int $file_size = null;
39
+    public null | int $file_size = 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
         }
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return bool|string string will be returned when destination doesn't set
62 62
      */
63
-    public function download(string|null $destination = null): bool|string {
64
-        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt',$this->file_id);
63
+    public function download(string | null $destination = null): bool | string {
64
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt', $this->file_id);
65 65
     }
66 66
 
67 67
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         return telegram::fileLink($this->file_id);
76 76
     }
77 77
 
78
-    public function typedSize (int $precision = 2, bool $space_between = true): string {
78
+    public function typedSize(int $precision = 2, bool $space_between = true): string {
79 79
         return tools::byteFormat($this->file_id, $precision, $space_between);
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
src/types/chatBoostAdded.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /** Number of boosts added by the user */
15 15
     public int $boost_count;
16 16
 
17
-    public function __construct(stdClass|null $object = null) {
17
+    public function __construct(stdClass | null $object = null) {
18 18
         if ($object != null) {
19 19
             parent::__construct($object, self::subs);
20 20
         }
Please login to merge, or discard this patch.
src/types/chatFullInfo.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -27,163 +27,163 @@  discard block
 block discarded – undo
27 27
      * languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a
28 28
      * signed 64-bit integer or double-precision float type are safe for storing this identifier.
29 29
      */
30
-    public null|int $id;
30
+    public null | int $id;
31 31
 
32 32
     /** Type of the chat, can be either “private”, “group”, “supergroup” or “channel” */
33
-    public null|string $type;
33
+    public null | string $type;
34 34
 
35 35
     /** Optional. Title, for supergroups, channels and group chats */
36
-    public null|string $title = null;
36
+    public null | string $title = null;
37 37
 
38 38
     /** Optional. Username, for private chats, supergroups and channels if available */
39
-    public null|string $username = null;
39
+    public null | string $username = null;
40 40
 
41 41
     /** Optional. First name of the other party in a private chat */
42
-    public null|string $first_name = null;
42
+    public null | string $first_name = null;
43 43
 
44 44
     /** Optional. Last name of the other party in a private chat */
45
-    public null|string $last_name = null;
45
+    public null | string $last_name = null;
46 46
 
47 47
     /** Optional. True, if the supergroup chat is a forum (has topics enabled) */
48
-    public null|bool $is_forum = null;
48
+    public null | bool $is_forum = null;
49 49
 
50 50
     /**
51 51
      * Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link
52 52
      * preview. See accent colors for more details.
53 53
      */
54
-    public null|int $accent_color_id;
54
+    public null | int $accent_color_id;
55 55
 
56 56
     /** The maximum number of reactions that can be set on a message in the chat */
57
-    public null|int $max_reaction_count;
57
+    public null | int $max_reaction_count;
58 58
 
59 59
     /** Optional. Chat photo */
60
-    public null|chatPhoto $photo = null;
60
+    public null | chatPhoto $photo = null;
61 61
 
62 62
     /**
63 63
      * Optional. If non-empty, the list of all active chat usernames = null; for private chats, supergroups and channels
64 64
      * @var string[]
65 65
      */
66
-    public null|array $active_usernames = null;
66
+    public null | array $active_usernames = null;
67 67
 
68 68
     /** Optional. For private chats, the date of birth of the user */
69
-    public null|birthdate $birthdate = null;
69
+    public null | birthdate $birthdate = null;
70 70
 
71 71
     /** Optional. For private chats with business accounts, the intro of the business */
72
-    public null|businessIntro $business_intro = null;
72
+    public null | businessIntro $business_intro = null;
73 73
 
74 74
     /** Optional. For private chats with business accounts, the location of the business */
75
-    public null|businessLocation $business_location = null;
75
+    public null | businessLocation $business_location = null;
76 76
 
77 77
     /** Optional. For private chats with business accounts, the opening hours of the business */
78
-    public null|businessOpeningHours $business_opening_hours = null;
78
+    public null | businessOpeningHours $business_opening_hours = null;
79 79
 
80 80
     /** Optional. For private chats, the personal channel of the user */
81
-    public null|chat $personal_chat = null;
81
+    public null | chat $personal_chat = null;
82 82
 
83 83
     /**
84 84
      * Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
85 85
      * @var reactionType[]
86 86
      */
87
-    public null|array $available_reactions = null;
87
+    public null | array $available_reactions = null;
88 88
 
89 89
     /**
90 90
      * Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview
91 91
      * background
92 92
      */
93
-    public null|string $background_custom_emoji_id = null;
93
+    public null | string $background_custom_emoji_id = null;
94 94
 
95 95
     /**
96 96
      * Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more
97 97
      * details.
98 98
      */
99
-    public null|int $profile_accent_color_id = null;
99
+    public null | int $profile_accent_color_id = null;
100 100
 
101 101
     /** Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background */
102
-    public null|string $profile_background_custom_emoji_id = null;
102
+    public null | string $profile_background_custom_emoji_id = null;
103 103
 
104 104
     /** Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat */
105
-    public null|string $emoji_status_custom_emoji_id = null;
105
+    public null | string $emoji_status_custom_emoji_id = null;
106 106
 
107 107
     /**
108 108
      * Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time,
109 109
      * if any
110 110
      */
111
-    public null|int $emoji_status_expiration_date = null;
111
+    public null | int $emoji_status_expiration_date = null;
112 112
 
113 113
     /** Optional. Bio of the other party in a private chat */
114
-    public null|string $bio = null;
114
+    public null | string $bio = null;
115 115
 
116 116
     /**
117 117
      * Optional. True, if privacy settings of the other party in the private chat allows to use
118 118
      * tg://user?id=<user_id> links only in chats with the user
119 119
      */
120
-    public null|bool $has_private_forwards = null;
120
+    public null | bool $has_private_forwards = null;
121 121
 
122 122
     /**
123 123
      * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in
124 124
      * the private chat
125 125
      */
126
-    public null|bool $has_restricted_voice_and_video_messages = null;
126
+    public null | bool $has_restricted_voice_and_video_messages = null;
127 127
 
128 128
     /** Optional. True, if users need to join the supergroup before they can send messages */
129
-    public null|bool $join_to_send_messages = null;
129
+    public null | bool $join_to_send_messages = null;
130 130
 
131 131
     /** Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators */
132
-    public null|bool $join_by_request = null;
132
+    public null | bool $join_by_request = null;
133 133
 
134 134
     /** Optional. Description, for groups, supergroups and channel chats */
135
-    public null|string $description = null;
135
+    public null | string $description = null;
136 136
 
137 137
     /** Optional. Primary invite link, for groups, supergroups and channel chats */
138
-    public null|string $invite_link = null;
138
+    public null | string $invite_link = null;
139 139
 
140 140
     /** Optional. The most recent pinned message (by sending date) */
141
-    public null|message $pinned_message = null;
141
+    public null | message $pinned_message = null;
142 142
 
143 143
     /** Optional. Default chat member permissions, for groups and supergroups */
144
-    public null|chatPermissions $permissions = null;
144
+    public null | chatPermissions $permissions = null;
145 145
 
146 146
     /**
147 147
      * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged
148 148
      * user = null; in seconds
149 149
      */
150
-    public null|int $slow_mode_delay = null;
150
+    public null | int $slow_mode_delay = null;
151 151
 
152 152
     /**
153 153
      * Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to
154 154
      * ignore slow mode and chat permissions
155 155
      */
156
-    public null|int $unrestrict_boost_count = null;
156
+    public null | int $unrestrict_boost_count = null;
157 157
 
158 158
     /** Optional. The time after which all messages sent to the chat will be automatically deleted = null; in seconds */
159
-    public null|int $message_auto_delete_time = null;
159
+    public null | int $message_auto_delete_time = null;
160 160
 
161 161
     /**
162 162
      * Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to
163 163
      * chat administrators.
164 164
      */
165
-    public null|bool $has_aggressive_anti_spam_enabled = null;
165
+    public null | bool $has_aggressive_anti_spam_enabled = null;
166 166
 
167 167
     /** Optional. True, if non-administrators can only get the list of bots and administrators in the chat */
168
-    public null|bool $has_hidden_members = null;
168
+    public null | bool $has_hidden_members = null;
169 169
 
170 170
     /** Optional. True, if messages from the chat can't be forwarded to other chats */
171
-    public null|bool $has_protected_content = null;
171
+    public null | bool $has_protected_content = null;
172 172
 
173 173
     /** Optional. True, if new chat members will have access to old messages = null; available only to chat administrators */
174
-    public null|bool $has_visible_history = null;
174
+    public null | bool $has_visible_history = null;
175 175
 
176 176
     /** Optional. For supergroups, name of the group sticker set */
177
-    public null|string $sticker_set_name = null;
177
+    public null | string $sticker_set_name = null;
178 178
 
179 179
     /** Optional. True, if the bot can change the group sticker set */
180
-    public null|bool $can_set_sticker_set = null;
180
+    public null | bool $can_set_sticker_set = null;
181 181
 
182 182
     /**
183 183
      * Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be
184 184
      * used by all users and bots in the group.
185 185
      */
186
-    public null|string $custom_emoji_sticker_set_name = null;
186
+    public null | string $custom_emoji_sticker_set_name = null;
187 187
 
188 188
     /**
189 189
      * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
      * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed
192 192
      * 64-bit integer or double-precision float type are safe for storing this identifier.
193 193
      */
194
-    public null|int $linked_chat_id = null;
194
+    public null | int $linked_chat_id = null;
195 195
 
196 196
     /** Optional. For supergroups, the location to which the supergroup is connected */
197
-    public null|chatLocation $location = null;
197
+    public null | chatLocation $location = null;
198 198
 
199 199
 
200
-    public function __construct(stdClass|null $object = null) {
200
+    public function __construct(stdClass | null $object = null) {
201 201
         if ($object != null) {
202 202
             parent::__construct($object, self::subs);
203 203
         }
Please login to merge, or discard this patch.
src/types/linkPreviewOptions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,31 +12,31 @@
 block discarded – undo
12 12
     private const subs = [];
13 13
 
14 14
     /** Optional. True, if the link preview is disabled */
15
-    public null|bool $is_disabled = null;
15
+    public null | bool $is_disabled = null;
16 16
 
17 17
     /** Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used */
18
-    public null|string $url = null;
18
+    public null | string $url = null;
19 19
 
20 20
     /**
21 21
      * Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly
22 22
      * specified or media size change isn't supported for the preview
23 23
      */
24
-    public null|bool $prefer_small_media = null;
24
+    public null | bool $prefer_small_media = null;
25 25
 
26 26
     /**
27 27
      * Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't
28 28
      * explicitly specified or media size change isn't supported for the preview
29 29
      */
30
-    public null|bool $prefer_large_media = null;
30
+    public null | bool $prefer_large_media = null;
31 31
 
32 32
     /**
33 33
      * Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be
34 34
      * shown below the message text
35 35
      */
36
-    public null|bool $show_above_text = null;
36
+    public null | bool $show_above_text = null;
37 37
 
38 38
 
39
-    public function __construct(stdClass|null $object = null) {
39
+    public function __construct(stdClass | null $object = null) {
40 40
         if ($object != null) {
41 41
             parent::__construct($object, self::subs);
42 42
         }
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,21 +15,21 @@  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). Not supported for messages sent on behalf of a business
23 23
      * account.
24 24
      */
25
-    public null|int $chat_id = null;
25
+    public null | int $chat_id = null;
26 26
 
27 27
     /**
28 28
      * Optional. Pass True if the message should be sent even if the specified message to be replied to is not found.
29 29
      * Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business
30 30
      * account.
31 31
      */
32
-    public null|bool $allow_sending_without_reply = null;
32
+    public null | bool $allow_sending_without_reply = null;
33 33
 
34 34
     /**
35 35
      * Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
      * spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original
38 38
      * message.
39 39
      */
40
-    public null|string $quote = null;
40
+    public null | string $quote = null;
41 41
 
42 42
     /** Optional. Mode for parsing entities in the quote. See formatting options for more details. */
43
-    public null|string $quote_parse_mode = null;
43
+    public null | string $quote_parse_mode = null;
44 44
 
45 45
     /**
46 46
      * Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of
47 47
      * quote_parse_mode.
48 48
      * @var messageEntity[]
49 49
      */
50
-    public null|array $quote_entities = null;
50
+    public null | array $quote_entities = null;
51 51
 
52 52
     /** Optional. Position of the quote in the original message in UTF-16 code units */
53
-    public null|int $quote_position = null;
53
+    public null | int $quote_position = null;
54 54
 
55 55
 
56
-    public function __construct(stdClass|null $object = null) {
56
+    public function __construct(stdClass | null $object = null) {
57 57
         if ($object != null) {
58 58
             parent::__construct($object, self::subs);
59 59
         }
Please login to merge, or discard this patch.
src/types/keyboardButtonRequestUsers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public bool $request_photo;
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/story.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /** Unique identifier for the story in the chat */
18 18
     public int $id;
19 19
 
20
-    public function __construct(stdClass|null $object = null) {
20
+    public function __construct(stdClass | null $object = null) {
21 21
         if ($object != null) {
22 22
             parent::__construct($object, self::subs);
23 23
         }
Please login to merge, or discard this patch.