Passed
Push — main ( 959383...f6df14 )
by Miaad
01:38
created
types/loginUrl.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 bool $request_write_access;
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.
types/chatJoinRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public chatInviteLink $invite_link;
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.
types/inputMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /** Keep all of properties which has sub properties */
12 12
     private const subs = [];
13 13
 
14
-    public function __construct(stdClass|null $object = null) {
14
+    public function __construct(stdClass | null $object = null) {
15 15
         if ($object != null) {
16 16
             parent::__construct($object, self::subs);
17 17
         }
Please login to merge, or discard this patch.
types/inputMediaVideo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public bool $supports_streaming;
57 57
 
58 58
 
59
-    public function __construct(stdClass|null $object = null) {
59
+    public function __construct(stdClass | null $object = null) {
60 60
         if ($object != null) {
61 61
             parent::__construct($object, self::subs);
62 62
         }
Please login to merge, or discard this patch.
types/animation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public int $file_size;
47 47
 
48 48
 
49
-    public function __construct(stdClass|null $object = null) {
49
+    public function __construct(stdClass | null $object = null) {
50 50
         if ($object != null) {
51 51
             parent::__construct($object, self::subs);
52 52
         }
Please login to merge, or discard this patch.
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.
types/passportElementErrorFrontSide.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public string $message;
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.
types/types.php 2 patches
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.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,21 +17,18 @@  discard block
 block discarded – undo
17 17
         foreach ($object as $key=>$value) {
18 18
             if (isset($subs[$key])) {
19 19
                 $this->$key = new ($subs[$key]) ($value);
20
-            }
21
-            else {
20
+            } else {
22 21
                 if (is_array($value)) {
23 22
                     foreach ($value as $sub_key=>$sub_value) {
24 23
                         if (is_array($sub_value)) {
25 24
                             foreach ($sub_value as $sub2_value) {
26 25
                                 $this->$key[$sub_key][] = new ($subs['array']['array'][$key]) ($sub2_value);
27 26
                             }
28
-                        }
29
-                        else{
27
+                        } else{
30 28
                             $this->$key[] = new ($subs['array'][$key]) ($sub_value);
31 29
                         }
32 30
                     }
33
-                }
34
-                else{
31
+                } else{
35 32
                     $this->$key = $value;
36 33
                     if (ucfirst($key) === basename(get_class($this)).'_id') {
37 34
                         $this->{'id'} = $value;
@@ -48,8 +45,7 @@  discard block
 block discarded – undo
48 45
             $name = substr($name,3);
49 46
             if (isset($arguments[0])) {
50 47
                 $this->$name = $arguments[0];
51
-            }
52
-            elseif (isset($arguments['value'])) {
48
+            } elseif (isset($arguments['value'])) {
53 49
                 $this->$name = $arguments['value'];
54 50
             }
55 51
         }
Please login to merge, or discard this patch.
types/game.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public animation $animation;
45 45
 
46 46
 
47
-    public function __construct(stdClass|null $object = null) {
47
+    public function __construct(stdClass | null $object = null) {
48 48
         if ($object != null) {
49 49
             parent::__construct($object, self::subs);
50 50
         }
Please login to merge, or discard this patch.