Passed
Push — main ( e0778d...2e4cb3 )
by Miaad
10:42
created
src/types/contact.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,20 +20,20 @@  discard block
 block discarded – undo
20 20
     public string $first_name;
21 21
 
22 22
     /** Optional. Contact's last name */
23
-    public null|string $last_name = null;
23
+    public null | string $last_name = null;
24 24
 
25 25
     /**
26 26
      * Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some
27 27
      * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant
28 28
      * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
29 29
      */
30
-    public null|int $user_id = null;
30
+    public null | int $user_id = null;
31 31
 
32 32
     /** Optional. Additional data about the contact in the form of a vCard */
33
-    public null|string $vcard = null;
33
+    public null | string $vcard = null;
34 34
 
35 35
 
36
-    public function __construct(stdClass|null $object = null) {
36
+    public function __construct(stdClass | null $object = null) {
37 37
         if ($object != null) {
38 38
             parent::__construct($object, self::subs);
39 39
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         return $this->user_id === request::catchFields(fields::USER_ID);
49 49
     }
50 50
 
51
-    public function fullName (): string {
52
-        return trim($this->first_name . ' ' . ($this->last_name ?? ''));
51
+    public function fullName(): string {
52
+        return trim($this->first_name.' '.($this->last_name ?? ''));
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/types/businessOpeningHours.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 $opening_hours;
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/inputPollOption.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
     private const subs = ['array' => ['text_entities' => 'BPT\types\messageEntity']];
13 13
 
14 14
     /** Option text, 1-100 characters */
15
-    public string|null $text = null;
15
+    public string | null $text = null;
16 16
 
17 17
     /**
18 18
      * Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only
19 19
      * custom emoji entities are allowed
20 20
      */
21
-    public string|null $text_parse_mode = null;
21
+    public string | null $text_parse_mode = null;
22 22
 
23 23
     /**
24 24
      * Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified
25 25
      * instead of text_parse_mode
26 26
      * @var messageEntity[]
27 27
      */
28
-    public array|null $text_entities = null;
28
+    public array | null $text_entities = 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/backgroundType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public string $theme_name;
54 54
 
55 55
 
56
-    public function __construct(stdClass|null $object = null) {
56
+    public function __construct(stdClass | null $object = null) {
57 57
         if ($object != null) {
58 58
             parent::__construct($object, self::subs);
59 59
         }
Please login to merge, or discard this patch.
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.