Passed
Push — main ( 7834cc...51b09b )
by Miaad
01:43
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/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.
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/video.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,23 +31,23 @@  discard block
 block discarded – undo
31 31
     public int $duration;
32 32
 
33 33
     /** Optional. Video thumbnail */
34
-    public null|photoSize $thumb = null;
34
+    public null | photoSize $thumb = null;
35 35
 
36 36
     /** Optional. Original filename as defined by sender */
37
-    public null|string $file_name = null;
37
+    public null | string $file_name = null;
38 38
 
39 39
     /** Optional. MIME type of the file as defined by sender */
40
-    public null|string $mime_type = null;
40
+    public null | string $mime_type = null;
41 41
 
42 42
     /**
43 43
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
44 44
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
45 45
      * integer or double-precision float type are safe for storing this value.
46 46
      */
47
-    public null|int $file_size = null;
47
+    public null | int $file_size = 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.mp4',$this->file_id);
71
+    public function download(string | null $destination = null): bool | string {
72
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id);
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
src/types/encryptedPassportElement.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
      * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and
29 29
      * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
30 30
      */
31
-    public null|string $data = null;
31
+    public null | string $data = null;
32 32
 
33 33
     /** Optional. User's verified phone number, available only for “phone_number” type */
34
-    public null|string $phone_number = null;
34
+    public null | string $phone_number = null;
35 35
 
36 36
     /** Optional. User's verified email address, available only for “email” type */
37
-    public null|string $email = null;
37
+    public null | string $email = null;
38 38
 
39 39
     /**
40 40
      * Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”,
@@ -42,28 +42,28 @@  discard block
 block discarded – undo
42 42
      * types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
43 43
      * @var passportFile[]
44 44
      */
45
-    public null|array $files = null;
45
+    public null | array $files = null;
46 46
 
47 47
     /**
48 48
      * Optional. Encrypted file with the front side of the document, provided by the user. Available for
49 49
      * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be
50 50
      * decrypted and verified using the accompanying EncryptedCredentials.
51 51
      */
52
-    public null|passportFile $front_side = null;
52
+    public null | passportFile $front_side = null;
53 53
 
54 54
     /**
55 55
      * Optional. Encrypted file with the reverse side of the document, provided by the user. Available for
56 56
      * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying
57 57
      * EncryptedCredentials.
58 58
      */
59
-    public null|passportFile $reverse_side = null;
59
+    public null | passportFile $reverse_side = null;
60 60
 
61 61
     /**
62 62
      * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for
63 63
      * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be
64 64
      * decrypted and verified using the accompanying EncryptedCredentials.
65 65
      */
66
-    public null|passportFile $selfie = null;
66
+    public null | passportFile $selfie = null;
67 67
 
68 68
     /**
69 69
      * Optional. Array of encrypted files with translated versions of documents provided by the user. Available if
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
      * EncryptedCredentials.
74 74
      * @var passportFile[]
75 75
      */
76
-    public null|array $translation = null;
76
+    public null | array $translation = null;
77 77
 
78 78
     /** Base64-encoded element hash for using in PassportElementErrorUnspecified */
79 79
     public string $hash;
80 80
 
81 81
 
82
-    public function __construct(stdClass|null $object = null) {
82
+    public function __construct(stdClass | null $object = null) {
83 83
         if ($object != null) {
84 84
             parent::__construct($object, self::subs);
85 85
         }
Please login to merge, or discard this patch.
src/types/preCheckoutQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
     public string $invoice_payload;
32 32
 
33 33
     /** Optional. Identifier of the shipping option chosen by the user */
34
-    public null|string $shipping_option_id = null;
34
+    public null | string $shipping_option_id = null;
35 35
 
36 36
     /** Optional. Order information provided by the user */
37
-    public null|orderInfo $order_info = null;
37
+    public null | orderInfo $order_info = null;
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/inlineQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
      * should be always known for requests sent from official clients and most third-party clients, unless the
31 31
      * request was sent from a secret chat
32 32
      */
33
-    public null|string $chat_type = null;
33
+    public null | string $chat_type = null;
34 34
 
35 35
     /** Optional. Sender location, only for bots that request user location */
36
-    public null|location $location = null;
36
+    public null | location $location = 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.