Passed
Push — main ( 926a07...7834cc )
by Miaad
10:19
created
src/types/botCommandScope.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
     /**
23 23
      * `chat` and `chat_administrators` and `chat_member` only. Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername)
24 24
      */
25
-    public null|int $chat_id = null;
25
+    public null | int $chat_id = null;
26 26
 
27 27
     /** `chat_member` only. Unique identifier of the target user */
28
-    public null|int $user_id = null;
28
+    public null | int $user_id = null;
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/contact.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@
 block discarded – undo
18 18
     public string $first_name;
19 19
 
20 20
     /** Optional. Contact's last name */
21
-    public null|string $last_name = null;
21
+    public null | string $last_name = null;
22 22
 
23 23
     /**
24 24
      * Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some
25 25
      * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant
26 26
      * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
27 27
      */
28
-    public null|int $user_id = null;
28
+    public null | int $user_id = null;
29 29
 
30 30
     /** Optional. Additional data about the contact in the form of a vCard */
31
-    public null|string $vcard = null;
31
+    public null | string $vcard = null;
32 32
 
33 33
 
34
-    public function __construct(stdClass|null $object = null) {
34
+    public function __construct(stdClass | null $object = null) {
35 35
         if ($object != null) {
36 36
             parent::__construct($object, self::subs);
37 37
         }
Please login to merge, or discard this patch.
src/types/userProfilePhotos.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public array $photos = [];
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/update.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -46,64 +46,64 @@
 block discarded – undo
46 46
     public int $update_id;
47 47
 
48 48
     /** Optional. New incoming message of any kind - text, photo, sticker, etc. */
49
-    public null|message $message = null;
49
+    public null | message $message = null;
50 50
 
51 51
     /** Optional. New version of a message that is known to the bot and was edited */
52
-    public null|message $edited_message = null;
52
+    public null | message $edited_message = null;
53 53
 
54 54
     /** Optional. New incoming channel post of any kind - text, photo, sticker, etc. */
55
-    public null|message $channel_post = null;
55
+    public null | message $channel_post = null;
56 56
 
57 57
     /** Optional. New version of a channel post that is known to the bot and was edited */
58
-    public null|message $edited_channel_post = null;
58
+    public null | message $edited_channel_post = null;
59 59
 
60 60
     /** Optional. New incoming inline query */
61
-    public null|inlineQuery $inline_query = null;
61
+    public null | inlineQuery $inline_query = null;
62 62
 
63 63
     /**
64 64
      * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see
65 65
      * our documentation on the feedback collecting for details on how to enable these updates for your bot.
66 66
      */
67
-    public null|chosenInlineResult $chosen_inline_result = null;
67
+    public null | chosenInlineResult $chosen_inline_result = null;
68 68
 
69 69
     /** Optional. New incoming callback query */
70
-    public null|callbackQuery $callback_query = null;
70
+    public null | callbackQuery $callback_query = null;
71 71
 
72 72
     /** Optional. New incoming shipping query. Only for invoices with flexible price */
73
-    public null|shippingQuery $shipping_query = null;
73
+    public null | shippingQuery $shipping_query = null;
74 74
 
75 75
     /** Optional. New incoming pre-checkout query. Contains full information about checkout */
76
-    public null|preCheckoutQuery $pre_checkout_query = null;
76
+    public null | preCheckoutQuery $pre_checkout_query = null;
77 77
 
78 78
     /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */
79
-    public null|poll $poll = null;
79
+    public null | poll $poll = null;
80 80
 
81 81
     /**
82 82
      * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were
83 83
      * sent by the bot itself.
84 84
      */
85
-    public null|pollAnswer $poll_answer = null;
85
+    public null | pollAnswer $poll_answer = null;
86 86
 
87 87
     /**
88 88
      * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only
89 89
      * when the bot is blocked or unblocked by the user.
90 90
      */
91
-    public null|chatMemberUpdated $my_chat_member = null;
91
+    public null | chatMemberUpdated $my_chat_member = null;
92 92
 
93 93
     /**
94 94
      * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must
95 95
      * explicitly specify “chat_member” in the list of allowed_updates to receive these updates.
96 96
      */
97
-    public null|chatMemberUpdated $chat_member = null;
97
+    public null | chatMemberUpdated $chat_member = null;
98 98
 
99 99
     /**
100 100
      * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right
101 101
      * in the chat to receive these updates.
102 102
      */
103
-    public null|chatJoinRequest $chat_join_request = null;
103
+    public null | chatJoinRequest $chat_join_request = null;
104 104
 
105 105
 
106
-    public function __construct(stdClass|null $object = null) {
106
+    public function __construct(stdClass | null $object = null) {
107 107
         if ($object != null) {
108 108
             parent::__construct($object, self::subs);
109 109
         }
Please login to merge, or discard this patch.
src/types/audio.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,29 +25,29 @@  discard block
 block discarded – undo
25 25
     public int $duration;
26 26
 
27 27
     /** Optional. Performer of the audio as defined by sender or by audio tags */
28
-    public null|string $performer = null;
28
+    public null | string $performer = null;
29 29
 
30 30
     /** Optional. Title of the audio as defined by sender or by audio tags */
31
-    public null|string $title = null;
31
+    public null | string $title = null;
32 32
 
33 33
     /** Optional. Original filename as defined by sender */
34
-    public null|string $file_name = null;
34
+    public null | string $file_name = null;
35 35
 
36 36
     /** Optional. MIME type of the file as defined by sender */
37
-    public null|string $mime_type = null;
37
+    public null | string $mime_type = null;
38 38
 
39 39
     /**
40 40
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
41 41
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
42 42
      * integer or double-precision float type are safe for storing this value.
43 43
      */
44
-    public null|int $file_size = null;
44
+    public null | int $file_size = null;
45 45
 
46 46
     /** Optional. Thumbnail of the album cover to which the music file belongs */
47
-    public null|photoSize $thumb = null;
47
+    public null | photoSize $thumb = null;
48 48
 
49 49
 
50
-    public function __construct(stdClass|null $object = null) {
50
+    public function __construct(stdClass | null $object = null) {
51 51
         if ($object != null) {
52 52
             parent::__construct($object, self::subs);
53 53
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return bool|string string will be returned when destination doesn't set
70 70
      */
71
-    public function download(string|null $destination = null): bool|string {
72
-        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id);
71
+    public function download(string | null $destination = null): bool | string {
72
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id);
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
src/types/location.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,25 +18,25 @@
 block discarded – undo
18 18
     public float $latitude;
19 19
 
20 20
     /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */
21
-    public null|float $horizontal_accuracy = null;
21
+    public null | float $horizontal_accuracy = null;
22 22
 
23 23
     /**
24 24
      * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For
25 25
      * active live locations only.
26 26
      */
27
-    public null|int $live_period = null;
27
+    public null | int $live_period = null;
28 28
 
29 29
     /** Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */
30
-    public null|int $heading = null;
30
+    public null | int $heading = null;
31 31
 
32 32
     /**
33 33
      * Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent
34 34
      * live locations only.
35 35
      */
36
-    public null|int $proximity_alert_radius = null;
36
+    public null | int $proximity_alert_radius = 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/chatInviteLink.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,22 +30,22 @@
 block discarded – undo
30 30
     public bool $is_revoked;
31 31
 
32 32
     /** Optional. Invite link name */
33
-    public null|string $name = null;
33
+    public null | string $name = null;
34 34
 
35 35
     /** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */
36
-    public null|int $expire_date = null;
36
+    public null | int $expire_date = null;
37 37
 
38 38
     /**
39 39
      * Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat
40 40
      * via this invite link; 1-99999
41 41
      */
42
-    public null|int $member_limit = null;
42
+    public null | int $member_limit = null;
43 43
 
44 44
     /** Optional. Number of pending join requests created using this link */
45
-    public null|int $pending_join_request_count = null;
45
+    public null | int $pending_join_request_count = null;
46 46
 
47 47
 
48
-    public function __construct(stdClass|null $object = null) {
48
+    public function __construct(stdClass | null $object = null) {
49 49
         if ($object != null) {
50 50
             parent::__construct($object, self::subs);
51 51
         }
Please login to merge, or discard this patch.
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/photoSize.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
     public int $height;
29 29
 
30 30
     /** Optional. File size in bytes */
31
-    public null|int $file_size = null;
31
+    public null | int $file_size = null;
32 32
 
33 33
 
34
-    public function __construct(stdClass|null $object = null) {
34
+    public function __construct(stdClass | null $object = null) {
35 35
         if ($object != null) {
36 36
             parent::__construct($object, self::subs);
37 37
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return bool|string string will be returned when destination doesn't set
54 54
      */
55
-    public function download(string|null $destination = null): bool|string {
56
-        return telegram::downloadFile($destination ?? 'unknown.jpg',$this->file_id);
55
+    public function download(string | null $destination = null): bool | string {
56
+        return telegram::downloadFile($destination ?? 'unknown.jpg', $this->file_id);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.