Passed
Push — main ( e0778d...2e4cb3 )
by Miaad
10:42
created
src/types/keyboardButtonRequestUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public int $max_quantity;
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
         }
Please login to merge, or discard this patch.
src/types/keyboardButtonRequestChat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     public bool $request_photo;
83 83
 
84 84
 
85
-    public function __construct(stdClass|null $object = null) {
85
+    public function __construct(stdClass | null $object = null) {
86 86
         if ($object != null) {
87 87
             parent::__construct($object, self::subs);
88 88
         }
Please login to merge, or discard this patch.
src/types/audio.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,29 +26,29 @@  discard block
 block discarded – undo
26 26
     public int $duration;
27 27
 
28 28
     /** Optional. Performer of the audio as defined by sender or by audio tags */
29
-    public null|string $performer = null;
29
+    public null | string $performer = null;
30 30
 
31 31
     /** Optional. Title of the audio as defined by sender or by audio tags */
32
-    public null|string $title = null;
32
+    public null | string $title = null;
33 33
 
34 34
     /** Optional. Original filename as defined by sender */
35
-    public null|string $file_name = null;
35
+    public null | string $file_name = null;
36 36
 
37 37
     /** Optional. MIME type of the file as defined by sender */
38
-    public null|string $mime_type = null;
38
+    public null | string $mime_type = null;
39 39
 
40 40
     /**
41 41
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
42 42
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
43 43
      * integer or double-precision float type are safe for storing this value.
44 44
      */
45
-    public null|int $file_size = null;
45
+    public null | int $file_size = null;
46 46
 
47 47
     /** Optional. Thumbnail of the album cover to which the music file belongs */
48
-    public null|photoSize $thumbnail = null;
48
+    public null | photoSize $thumbnail = null;
49 49
 
50 50
 
51
-    public function __construct(stdClass|null $object = null) {
51
+    public function __construct(stdClass | null $object = null) {
52 52
         if ($object != null) {
53 53
             parent::__construct($object, self::subs);
54 54
         }
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return bool|string string will be returned when destination doesn't set
71 71
      */
72
-    public function download(string|null $destination = null): bool|string {
73
-        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id);
72
+    public function download(string | null $destination = null): bool | string {
73
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id);
74 74
     }
75 75
 
76 76
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         return telegram::fileLink($this->file_id);
85 85
     }
86 86
 
87
-    public function typedSize (int $precision = 2, bool $space_between = true): string {
87
+    public function typedSize(int $precision = 2, bool $space_between = true): string {
88 88
         return tools::byteFormat($this->file_id, $precision, $space_between);
89 89
     }
90 90
 }
Please login to merge, or discard this patch.
src/types/location.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,25 +18,25 @@  discard block
 block discarded – undo
18 18
     public float $longitude;
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
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @return string
49 49
      */
50
-    public function mapLink (): string {
50
+    public function mapLink(): string {
51 51
         return "https://www.google.com/maps/search/$this->latitude,$this->longitude";
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/types/birthdate.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 $month;
19 19
 
20 20
     /** Optional. Year of the user's birth */
21
-    public null|int $year = null;
21
+    public null | int $year = 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/businessConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public bool $is_enabled;
36 36
 
37 37
 
38
-    public function __construct(stdClass|null $object = null) {
38
+    public function __construct(stdClass | null $object = null) {
39 39
         if ($object != null) {
40 40
             parent::__construct($object, self::subs);
41 41
         }
Please login to merge, or discard this patch.
src/types/video.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,23 +32,23 @@  discard block
 block discarded – undo
32 32
     public int $duration;
33 33
 
34 34
     /** Optional. Video thumbnail */
35
-    public null|photoSize $thumbnail = null;
35
+    public null | photoSize $thumbnail = null;
36 36
 
37 37
     /** Optional. Original filename as defined by sender */
38
-    public null|string $file_name = null;
38
+    public null | string $file_name = null;
39 39
 
40 40
     /** Optional. MIME type of the file as defined by sender */
41
-    public null|string $mime_type = null;
41
+    public null | string $mime_type = null;
42 42
 
43 43
     /**
44 44
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
45 45
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
46 46
      * integer or double-precision float type are safe for storing this value.
47 47
      */
48
-    public null|int $file_size = null;
48
+    public null | int $file_size = null;
49 49
 
50 50
 
51
-    public function __construct(stdClass|null $object = null) {
51
+    public function __construct(stdClass | null $object = null) {
52 52
         if ($object != null) {
53 53
             parent::__construct($object, self::subs);
54 54
         }
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return bool|string string will be returned when destination doesn't set
71 71
      */
72
-    public function download(string|null $destination = null): bool|string {
73
-        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$this->file_id);
72
+    public function download(string | null $destination = null): bool | string {
73
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id);
74 74
     }
75 75
 
76 76
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         return telegram::fileLink($this->file_id);
85 85
     }
86 86
 
87
-    public function typedSize (int $precision = 2, bool $space_between = true): string {
87
+    public function typedSize(int $precision = 2, bool $space_between = true): string {
88 88
         return tools::byteFormat($this->file_id, $precision, $space_between);
89 89
     }
90 90
 }
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 only 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 only 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 only 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 if
63 63
      * requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file
64 64
      * can be 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/chatBackground.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
     public backgroundType $type;
18 18
 
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.