Passed
Push — main ( e0778d...2e4cb3 )
by Miaad
10:42
created
src/types/orderInfo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,19 +12,19 @@
 block discarded – undo
12 12
     private const subs = ['shipping_address' => 'BPT\types\shippingAddress'];
13 13
 
14 14
     /** Optional. User name */
15
-    public null|string $name = null;
15
+    public null | string $name = null;
16 16
 
17 17
     /** Optional. User's phone number */
18
-    public null|string $phone_number = null;
18
+    public null | string $phone_number = null;
19 19
 
20 20
     /** Optional. User email */
21
-    public null|string $email = null;
21
+    public null | string $email = null;
22 22
 
23 23
     /** Optional. User shipping address */
24
-    public null|shippingAddress $shipping_address = null;
24
+    public null | shippingAddress $shipping_address = null;
25 25
 
26 26
 
27
-    public function __construct(stdClass|null $object = null) {
27
+    public function __construct(stdClass | null $object = null) {
28 28
         if ($object != null) {
29 29
             parent::__construct($object, self::subs);
30 30
         }
Please login to merge, or discard this patch.
src/types/venue.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,22 +21,22 @@
 block discarded – undo
21 21
     public string $address;
22 22
 
23 23
     /** Optional. Foursquare identifier of the venue */
24
-    public null|string $foursquare_id = null;
24
+    public null | string $foursquare_id = null;
25 25
 
26 26
     /**
27 27
      * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,
28 28
      * “arts_entertainment/aquarium” or “food/icecream”.)
29 29
      */
30
-    public null|string $foursquare_type = null;
30
+    public null | string $foursquare_type = null;
31 31
 
32 32
     /** Optional. Google Places identifier of the venue */
33
-    public null|string $google_place_id = null;
33
+    public null | string $google_place_id = null;
34 34
 
35 35
     /** Optional. Google Places type of the venue. (See supported types.) */
36
-    public null|string $google_place_type = null;
36
+    public null | string $google_place_type = 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/successfulPayment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
     public string $invoice_payload;
26 26
 
27 27
     /** Optional. Identifier of the shipping option chosen by the user */
28
-    public null|string $shipping_option_id = null;
28
+    public null | string $shipping_option_id = null;
29 29
 
30 30
     /** Optional. Order information provided by the user */
31
-    public null|orderInfo $order_info = null;
31
+    public null | orderInfo $order_info = null;
32 32
 
33 33
     /** Telegram payment identifier */
34 34
     public string $telegram_payment_charge_id;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public string $provider_payment_charge_id;
38 38
 
39 39
 
40
-    public function __construct(stdClass|null $object = null) {
40
+    public function __construct(stdClass | null $object = null) {
41 41
         if ($object != null) {
42 42
             parent::__construct($object, self::subs);
43 43
         }
Please login to merge, or discard this patch.
src/types/chosenInlineResult.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@
 block discarded – undo
18 18
     public user $from;
19 19
 
20 20
     /** Optional. Sender location, only for bots that require user location */
21
-    public null|location $location = null;
21
+    public null | location $location = null;
22 22
 
23 23
     /**
24 24
      * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
25 25
      * message. Will be also received in callback queries and can be used to edit the message.
26 26
      */
27
-    public null|string $inline_message_id = null;
27
+    public null | string $inline_message_id = null;
28 28
 
29 29
     /** The query that was used to obtain the result */
30 30
     public string $query;
31 31
 
32 32
 
33
-    public function __construct(stdClass|null $object = null) {
33
+    public function __construct(stdClass | null $object = null) {
34 34
         if ($object != null) {
35 35
             parent::__construct($object, self::subs);
36 36
         }
Please login to merge, or discard this patch.
src/types/responseParameters.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@
 block discarded – undo
17 17
      * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for
18 18
      * storing this identifier.
19 19
      */
20
-    public null|int $migrate_to_chat_id = null;
20
+    public null | int $migrate_to_chat_id = null;
21 21
 
22 22
     /**
23 23
      * Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be
24 24
      * repeated
25 25
      */
26
-    public null|int $retry_after = null;
26
+    public null | int $retry_after = null;
27 27
 
28 28
 
29
-    public function __construct(stdClass|null $object = null) {
29
+    public function __construct(stdClass | null $object = null) {
30 30
         if ($object != null) {
31 31
             parent::__construct($object, self::subs);
32 32
         }
Please login to merge, or discard this patch.
src/types/sentWebAppMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
      * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
16 16
      * message.
17 17
      */
18
-    public null|string $inline_message_id = null;
18
+    public null | string $inline_message_id = null;
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/forumTopic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
     public int $icon_color;
19 19
 
20 20
     /** Optional. Unique identifier of the custom emoji shown as the topic icon */
21
-    public null|string $icon_custom_emoji_id = null;
21
+    public null | string $icon_custom_emoji_id = 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/database/db.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
     /**
18 18
      * @internal Only for BPT self usage , Don't use it in your source!
19 19
      */
20
-    public static function init (): void {
20
+    public static function init(): void {
21 21
         if (!isset(settings::$db['type'])) {
22 22
             settings::$db['type'] = dbTypes::JSON;
23 23
         }
Please login to merge, or discard this patch.
src/types/forumTopicEdited.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     public string $name;
16 16
 
17 17
     /** Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed */
18
-    public null|string $icon_custom_emoji_id = null;
18
+    public null | string $icon_custom_emoji_id = null;
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.