Passed
Push — main ( 4cb247...21f878 )
by Miaad
10:47
created
src/types/sentWebAppMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public string $inline_message_id;
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/successfulPayment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 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/inlineQueryResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
314 314
     public string $audio_file_id;
315 315
 
316 316
 
317
-    public function __construct(stdClass|null $object = null) {
317
+    public function __construct(stdClass | null $object = null) {
318 318
         if ($object != null) {
319 319
             parent::__construct($object, self::subs);
320 320
         }
Please login to merge, or discard this patch.
src/types/chatLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public string $address;
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/types.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
                                 $this->$key[$sub_key][] = new ($subs['array']['array'][$key]) ($sub2_value);
27 27
                             }
28 28
                         }
29
-                        else{
29
+                        else {
30 30
                             $this->$key[] = new ($subs['array'][$key]) ($sub_value);
31 31
                         }
32 32
                     }
33 33
                 }
34
-                else{
34
+                else {
35 35
                     $this->$key = $value;
36 36
                     if (ucfirst($key) === basename(get_class($this)).'_id') {
37 37
                         $this->{'id'} = $value;
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function __call(string $name, array $arguments) {
46 46
         $name = strtolower($name);
47 47
         if (str_starts_with($name, 'set')) {
48
-            $name = substr($name,3);
48
+            $name = substr($name, 3);
49 49
             if (isset($arguments[0])) {
50 50
                 $this->$name = $arguments[0];
51 51
             }
Please login to merge, or discard this patch.
src/types/message.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
     public string $text;
140 140
 
141 141
     /** Optional. If user message was a commend , this parameter will be the commend */
142
-    public string|null $commend;
142
+    public string | null $commend;
143 143
 
144 144
     /** Optional. If user message was a commend , this parameter will be the commend username(if exist) */
145
-    public string|null $commend_username;
145
+    public string | null $commend_username;
146 146
 
147 147
     /** Optional. If user message was a commend , this parameter will be the commend payload(if exist) */
148
-    public string|null $commend_payload;
148
+    public string | null $commend_payload;
149 149
 
150 150
     /**
151 151
      * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     public inlineKeyboardMarkup $reply_markup;
319 319
 
320 320
 
321
-    public function __construct(stdClass|null $object = null) {
321
+    public function __construct(stdClass | null $object = null) {
322 322
         if ($object != null) {
323 323
             parent::__construct($object, self::subs);
324 324
         }
Please login to merge, or discard this patch.
src/types/shippingQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public shippingAddress $shipping_address;
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/replyKeyboardMarkup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public bool $selective;
33 33
 
34 34
 
35
-    public function __construct(stdClass|null $object = null) {
35
+    public function __construct(stdClass | null $object = null) {
36 36
         if ($object != null) {
37 37
             parent::__construct($object, self::subs);
38 38
         }
Please login to merge, or discard this patch.
src/types/proximityAlertTriggered.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public int $distance;
23 23
 
24 24
 
25
-    public function __construct(stdClass|null $object = null) {
25
+    public function __construct(stdClass | null $object = null) {
26 26
         if ($object != null) {
27 27
             parent::__construct($object, self::subs);
28 28
         }
Please login to merge, or discard this patch.