Passed
Push — main ( e0778d...2e4cb3 )
by Miaad
10:42
created
src/settings/easyZarinpal.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,22 +4,22 @@
 block discarded – undo
4 4
 class easyZarinpal {
5 5
     private array $settings = [];
6 6
 
7
-    public function setSandbox (string $sandbox): self {
7
+    public function setSandbox(string $sandbox): self {
8 8
         $this->settings['sandbox'] = $sandbox;
9 9
         return $this;
10 10
     }
11 11
 
12
-    public function setZarinGate (string $zarin_gate): self {
12
+    public function setZarinGate(string $zarin_gate): self {
13 13
         $this->settings['zarin_gate'] = $zarin_gate;
14 14
         return $this;
15 15
     }
16 16
 
17
-    public function setMerchantId (int $merchant_id): self {
17
+    public function setMerchantId(int $merchant_id): self {
18 18
         $this->settings['merchant_id'] = $merchant_id;
19 19
         return $this;
20 20
     }
21 21
 
22
-    public function getSettings (): array {
22
+    public function getSettings(): array {
23 23
         return $this->settings;
24 24
     }
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/settings/easySQL.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return $this
15 15
      */
16
-    public function setHost (string $host): self {
16
+    public function setHost(string $host): self {
17 17
         $this->settings['host'] = $host;
18 18
         return $this;
19 19
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return $this
25 25
      */
26
-    public function setPort (string $port): self {
26
+    public function setPort(string $port): self {
27 27
         $this->settings['port'] = $port;
28 28
         return $this;
29 29
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return $this
35 35
      */
36
-    public function setUsername (string $user): self {
36
+    public function setUsername(string $user): self {
37 37
         $this->settings['user'] = $user;
38 38
         return $this;
39 39
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @return $this
45 45
      */
46
-    public function setPassword (string $pass): self {
46
+    public function setPassword(string $pass): self {
47 47
         $this->settings['pass'] = $pass;
48 48
         return $this;
49 49
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return $this
55 55
      */
56
-    public function setDBName (string $dbname): self {
56
+    public function setDBName(string $dbname): self {
57 57
         $this->settings['dbname'] = $dbname;
58 58
         return $this;
59 59
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @return $this
65 65
      */
66
-    public function setAutoProcess (bool $auto_process): self {
66
+    public function setAutoProcess(bool $auto_process): self {
67 67
         $this->settings['auto_process'] = $auto_process;
68 68
         return $this;
69 69
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @return $this
75 75
      */
76
-    public function setAutoLoad (bool $auto_load): self {
76
+    public function setAutoLoad(bool $auto_load): self {
77 77
         $this->settings['auto_load'] = $auto_load;
78 78
         return $this;
79 79
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * @return array
83 83
      */
84
-    public function getSettings (): array {
84
+    public function getSettings(): array {
85 85
         return $this->settings;
86 86
     }
87 87
 }
88 88
\ No newline at end of file
Please login to merge, or discard this patch.
src/settings/easyCrypto.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,22 +4,22 @@
 block discarded – undo
4 4
 class easyCrypto {
5 5
     private array $settings = [];
6 6
 
7
-    public function setApiKey (string $api_key): self {
7
+    public function setApiKey(string $api_key): self {
8 8
         $this->settings['api_key'] = $api_key;
9 9
         return $this;
10 10
     }
11 11
 
12
-    public function setIpnSecret (string $ipn_secret): self {
12
+    public function setIpnSecret(string $ipn_secret): self {
13 13
         $this->settings['ipn_secret'] = $ipn_secret;
14 14
         return $this;
15 15
     }
16 16
 
17
-    public function setRoundDecimal (int $round_decimal): self {
17
+    public function setRoundDecimal(int $round_decimal): self {
18 18
         $this->settings['round_decimal'] = $round_decimal;
19 19
         return $this;
20 20
     }
21 21
 
22
-    public function getSettings (): array {
22
+    public function getSettings(): array {
23 23
         return $this->settings;
24 24
     }
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/settings/easyPay.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 class easyPay {
5 5
     private array $settings = [];
6 6
 
7
-    public function setCrypto (array|easyCrypto $crypto): self {
7
+    public function setCrypto(array | easyCrypto $crypto): self {
8 8
         if (!is_array($crypto) && !empty($crypto)) {
9 9
             $crypto = $crypto->getSettings();
10 10
         }
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         return $this;
13 13
     }
14 14
 
15
-    public function setIdpay (array|easyIdpay $idpay): self {
15
+    public function setIdpay(array | easyIdpay $idpay): self {
16 16
         if (!is_array($idpay) && !empty($idpay)) {
17 17
             $idpay = $idpay->getSettings();
18 18
         }
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         return $this;
21 21
     }
22 22
 
23
-    public function setZarinpal (array|easyZarinpal $zarinpal): self {
23
+    public function setZarinpal(array | easyZarinpal $zarinpal): self {
24 24
         if (!is_array($zarinpal) && !empty($zarinpal)) {
25 25
             $zarinpal = $zarinpal->getSettings();
26 26
         }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         return $this;
29 29
     }
30 30
 
31
-    public function getSettings (): array {
31
+    public function getSettings(): array {
32 32
         return $this->settings;
33 33
     }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
src/settings/easySettings.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      *
12 12
      * @return $this
13 13
      */
14
-    public function setToken (string $token): self {
14
+    public function setToken(string $token): self {
15 15
         $this->settings['token'] = $token;
16 16
         return $this;
17 17
     }
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @return $this
23 23
      */
24
-    public function setName (string $name): self {
24
+    public function setName(string $name): self {
25 25
         $this->settings['name'] = $name;
26 26
         return $this;
27 27
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return $this
33 33
      */
34
-    public function setLogger (bool $logger): self {
34
+    public function setLogger(bool $logger): self {
35 35
         $this->settings['logger'] = $logger;
36 36
         return $this;
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @return $this
43 43
      */
44
-    public function setLogSize (int $log_size): self {
44
+    public function setLogSize(int $log_size): self {
45 45
         $this->settings['log_size'] = $log_size;
46 46
         return $this;
47 47
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return $this
53 53
      */
54
-    public function setCertificate (string|CURLFile $certificate): self {
54
+    public function setCertificate(string | CURLFile $certificate): self {
55 55
         $this->settings['certificate'] = $certificate;
56 56
         return $this;
57 57
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return $this
63 63
      */
64
-    public function setHandler (bool $handler): self {
64
+    public function setHandler(bool $handler): self {
65 65
         $this->settings['handler'] = $handler;
66 66
         return $this;
67 67
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @return $this
73 73
      */
74
-    public function setSecurity (bool $security): self {
74
+    public function setSecurity(bool $security): self {
75 75
         $this->settings['security'] = $security;
76 76
         return $this;
77 77
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @return $this
83 83
      */
84
-    public function setSecureFolder (bool $secure_folder): self {
84
+    public function setSecureFolder(bool $secure_folder): self {
85 85
         $this->settings['secure_folder'] = $secure_folder;
86 86
         return $this;
87 87
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @return $this
93 93
      */
94
-    public function setMulti (bool $multi): self {
94
+    public function setMulti(bool $multi): self {
95 95
         $this->settings['multi'] = $multi;
96 96
         return $this;
97 97
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return $this
103 103
      */
104
-    public function setTelegramVerify (bool $telegram_verify): self {
104
+    public function setTelegramVerify(bool $telegram_verify): self {
105 105
         $this->settings['telegram_verify'] = $telegram_verify;
106 106
         return $this;
107 107
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return $this
113 113
      */
114
-    public function setCloudflareVerify (bool $cloudflare_verify): self {
114
+    public function setCloudflareVerify(bool $cloudflare_verify): self {
115 115
         $this->settings['cloudflare_verify'] = $cloudflare_verify;
116 116
         return $this;
117 117
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return $this
123 123
      */
124
-    public function setArvancloudVerify (bool $arvancloud_verify): self {
124
+    public function setArvancloudVerify(bool $arvancloud_verify): self {
125 125
         $this->settings['arvancloud_verify'] = $arvancloud_verify;
126 126
         return $this;
127 127
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      *
132 132
      * @return $this
133 133
      */
134
-    public function setSkipOldUpdates (bool $skip_old_updates): self {
134
+    public function setSkipOldUpdates(bool $skip_old_updates): self {
135 135
         $this->settings['skip_old_updates'] = $skip_old_updates;
136 136
         return $this;
137 137
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      *
142 142
      * @return $this
143 143
      */
144
-    public function setSecret (string $secret): self {
144
+    public function setSecret(string $secret): self {
145 145
         $this->settings['secret'] = $secret;
146 146
         return $this;
147 147
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      *
152 152
      * @return $this
153 153
      */
154
-    public function setMaxConnection (int $max_connection): self {
154
+    public function setMaxConnection(int $max_connection): self {
155 155
         $this->settings['max_connection'] = $max_connection;
156 156
         return $this;
157 157
     }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @return $this
163 163
      */
164
-    public function setBaseUrl (string $base_url): self {
164
+    public function setBaseUrl(string $base_url): self {
165 165
         $this->settings['base_url'] = $base_url;
166 166
         return $this;
167 167
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @return $this
173 173
      */
174
-    public function setDownUrl (string $down_url): self {
174
+    public function setDownUrl(string $down_url): self {
175 175
         $this->settings['down_url'] = $down_url;
176 176
         return $this;
177 177
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *
182 182
      * @return $this
183 183
      */
184
-    public function setDefaultParseMode (string $default_parse_mode): self {
184
+    public function setDefaultParseMode(string $default_parse_mode): self {
185 185
         $this->settings['default_parse_mode'] = $default_parse_mode;
186 186
         return $this;
187 187
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      *
192 192
      * @return $this
193 193
      */
194
-    public function setDefaultProtectContent (bool $default_protect_content): self {
194
+    public function setDefaultProtectContent(bool $default_protect_content): self {
195 195
         $this->settings['default_protect_content'] = $default_protect_content;
196 196
         return $this;
197 197
     }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      *
202 202
      * @return $this
203 203
      */
204
-    public function setIgnoreUpdatesOlderThen (int $ignore_updates_older_then): self {
204
+    public function setIgnoreUpdatesOlderThen(int $ignore_updates_older_then): self {
205 205
         $this->settings['ignore_updates_older_then'] = $ignore_updates_older_then;
206 206
         return $this;
207 207
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      *
212 212
      * @return $this
213 213
      */
214
-    public function setForgotTime (int $forgot_time): self {
214
+    public function setForgotTime(int $forgot_time): self {
215 215
         $this->settings['forgot_time'] = $forgot_time;
216 216
         return $this;
217 217
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      *
222 222
      * @return $this
223 223
      */
224
-    public function setBaseTimeout (int $base_timeout): self {
224
+    public function setBaseTimeout(int $base_timeout): self {
225 225
         $this->settings['base_timeout'] = $base_timeout;
226 226
         return $this;
227 227
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *
232 232
      * @return $this
233 233
      */
234
-    public function setReceiver (string|null $receiver): self {
234
+    public function setReceiver(string | null $receiver): self {
235 235
         $this->settings['receiver'] = $receiver;
236 236
         return $this;
237 237
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      *
242 242
      * @return $this
243 243
      */
244
-    public function setAllowedUpdates (array $allowed_updates): self {
244
+    public function setAllowedUpdates(array $allowed_updates): self {
245 245
         $this->settings['allowed_updates'] = $allowed_updates;
246 246
         return $this;
247 247
     }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      *
252 252
      * @return $this
253 253
      */
254
-    public function setUseTypesClasses (bool $use_types_classes): self {
254
+    public function setUseTypesClasses(bool $use_types_classes): self {
255 255
         $this->settings['use_types_classes'] = $use_types_classes;
256 256
         return $this;
257 257
     }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      *
262 262
      * @return $this
263 263
      */
264
-    public function setDB (array|easySQL|easyJson|null $db): self {
264
+    public function setDB(array | easySQL | easyJson | null $db): self {
265 265
         if (!is_array($db) && !empty($db)) {
266 266
             $db = $db->getSettings();
267 267
         }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      *
275 275
      * @return $this
276 276
      */
277
-    public function setPay (array|easyPay $pay): self {
277
+    public function setPay(array | easyPay $pay): self {
278 278
         if (!is_array($pay)) {
279 279
             $pay = $pay->getSettings();
280 280
         }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     /**
286 286
      * @return array
287 287
      */
288
-    public function getSettings (): array {
288
+    public function getSettings(): array {
289 289
         return $this->settings;
290 290
     }
291 291
 }
292 292
\ No newline at end of file
Please login to merge, or discard this patch.
src/settings.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public static int $log_size = 10;
31 31
 
32
-    public static string|CURLFile|null $certificate = null;
32
+    public static string | CURLFile | null $certificate = null;
33 33
 
34 34
     public static bool $handler = true;
35 35
 
@@ -65,20 +65,20 @@  discard block
 block discarded – undo
65 65
 
66 66
     public static int $base_timeout = 1000;
67 67
 
68
-    public static string|null $receiver = receiver::WEBHOOK;
68
+    public static string | null $receiver = receiver::WEBHOOK;
69 69
 
70 70
     public static array $allowed_updates = ['message', 'edited_channel_post', 'callback_query', 'inline_query'];
71 71
 
72 72
     public static bool $use_types_classes = true;
73 73
 
74
-    public static array|null $db = null;
74
+    public static array | null $db = null;
75 75
 
76
-    public static array|null $pay = null;
76
+    public static array | null $pay = null;
77 77
 
78 78
     /**
79 79
      * @internal Only for BPT self usage , Don't use it in your source!
80 80
      */
81
-    public static function init (array|easySettings $settings): void {
81
+    public static function init(array | easySettings $settings): void {
82 82
         if (!is_array($settings)) {
83 83
             $settings = $settings->getSettings();
84 84
         }
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
                     if (!is_dir(realpath('bots_files'))) {
89 89
                         mkdir('bots_files');
90 90
                     }
91
-                    if (!is_dir(realpath('bots_files/' . $value))) {
92
-                        mkdir('bots_files/' . $value);
91
+                    if (!is_dir(realpath('bots_files/'.$value))) {
92
+                        mkdir('bots_files/'.$value);
93 93
                     }
94
-                    $value = 'bots_files/' . $value . '/';
94
+                    $value = 'bots_files/'.$value.'/';
95 95
                 }
96 96
                 self::$$setting = $value;
97 97
             }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * @internal Only for BPT self usage , Don't use it in your source!
136 136
      */
137
-    public static function done (): void {
137
+    public static function done(): void {
138 138
         if (!self::$logger) {
139 139
             return;
140 140
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         logger::write("BPT Done in $estimated ms , $status_message", $type);
151 151
     }
152 152
 
153
-    private static function security (): void {
153
+    private static function security(): void {
154 154
         if (!self::$security) {
155 155
             return;
156 156
         }
@@ -166,13 +166,13 @@  discard block
 block discarded – undo
166 166
         ini_set('error_reporting', 0);
167 167
     }
168 168
 
169
-    private static function secureFolder (): void {
169
+    private static function secureFolder(): void {
170 170
         if (!self::$secure_folder) {
171 171
             return;
172 172
         }
173 173
         $address = explode('/', $_SERVER['REQUEST_URI']);
174 174
         unset($address[count($address) - 1]);
175
-        $address = implode('/', $address) . '/BPT.php';
175
+        $address = implode('/', $address).'/BPT.php';
176 176
         $text = "ErrorDocument 404 $address\nErrorDocument 403 $address\n Options -Indexes\n  Order Deny,Allow\nDeny from all\nAllow from 127.0.0.1\n<Files *.php>\n    Order Allow,Deny\n    Allow from all\n</Files>";
177 177
         $htaccess = realpath('.htaccess');
178 178
         if (!file_exists($htaccess) || filesize($htaccess) != strlen($text)) {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         }
181 181
     }
182 182
 
183
-    private static function getUpdates (): void {
183
+    private static function getUpdates(): void {
184 184
         if (!self::$handler) {
185 185
             logger::write('You can\'t use getUpdates receiver when handler is off , use webhook or use handler', loggerTypes::ERROR);
186 186
             throw new bptException('GETUPDATE_NEED_HANDLER');
Please login to merge, or discard this patch.
src/types/chatJoinRequest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     public int $date;
36 36
 
37 37
     /** Optional. Bio of the user. */
38
-    public null|string $bio = null;
38
+    public null | string $bio = null;
39 39
 
40 40
     /** Optional. Chat invite link that was used by the user to send the join request */
41
-    public null|chatInviteLink $invite_link = null;
41
+    public null | chatInviteLink $invite_link = null;
42 42
 
43 43
 
44
-    public function __construct(stdClass|null $object = null) {
44
+    public function __construct(stdClass | null $object = null) {
45 45
         if ($object != null) {
46 46
             parent::__construct($object, self::subs);
47 47
         }
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @return responseError|bool
56 56
      */
57
-    public function accept(bool $answer = null): responseError|bool {
58
-        return telegram::approveChatJoinRequest($this->chat->id,$this->from->id, answer: $answer);
57
+    public function accept(bool $answer = null): responseError | bool {
58
+        return telegram::approveChatJoinRequest($this->chat->id, $this->from->id, answer: $answer);
59 59
     }
60 60
 
61 61
     /**
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return responseError|bool
67 67
      */
68
-    public function deny(bool $answer = null): responseError|bool {
69
-        return telegram::declineChatJoinRequest($this->chat->id,$this->from->id, answer: $answer);
68
+    public function deny(bool $answer = null): responseError | bool {
69
+        return telegram::declineChatJoinRequest($this->chat->id, $this->from->id, answer: $answer);
70 70
     }
71 71
 
72 72
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @return responseError|bool
78 78
      */
79
-    public function revokeLink(bool $answer = null): responseError|bool {
79
+    public function revokeLink(bool $answer = null): responseError | bool {
80 80
         return telegram::revokeChatInviteLink($this->invite_link->invite_link, $this->chat->id, answer: $answer);
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/types/shippingQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public shippingAddress $shipping_address;
26 26
 
27 27
 
28
-    public function __construct(stdClass|null $object = null) {
28
+    public function __construct(stdClass | null $object = null) {
29 29
         if ($object != null) {
30 30
             parent::__construct($object, self::subs);
31 31
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @return responseError|bool
45 45
      */
46
-    public function answer (bool $ok, null|array $shipping_options = null, string|null $error_message = null, bool $answer = null): responseError|bool {
46
+    public function answer(bool $ok, null | array $shipping_options = null, string | null $error_message = null, bool $answer = null): responseError | bool {
47 47
         return telegram::answerShippingQuery($ok, $this->id, $shipping_options, $error_message, answer: $answer);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/types/preCheckoutQuery.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
     public string $invoice_payload;
33 33
 
34 34
     /** Optional. Identifier of the shipping option chosen by the user */
35
-    public null|string $shipping_option_id = null;
35
+    public null | string $shipping_option_id = null;
36 36
 
37 37
     /** Optional. Order information provided by the user */
38
-    public null|orderInfo $order_info = null;
38
+    public null | orderInfo $order_info = null;
39 39
 
40 40
 
41
-    public function __construct(stdClass|null $object = null) {
41
+    public function __construct(stdClass | null $object = null) {
42 42
         if ($object != null) {
43 43
             parent::__construct($object, self::subs);
44 44
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @return responseError|bool
58 58
      */
59
-    public function answer (bool $ok, string|null $error_message = null, bool $answer = null): responseError|bool {
59
+    public function answer(bool $ok, string | null $error_message = null, bool $answer = null): responseError | bool {
60 60
         return telegram::answerPreCheckoutQuery($ok, $this->id, $error_message, answer: $answer);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.