Passed
Push — main ( 21f878...926a07 )
by Miaad
10:33
created
src/types/types.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
                                 $this->$key[$sub_key][] = new ($subs['array']['array'][$key]) ($sub2_value);
27 27
                             }
28 28
                         }
29
-                        elseif(isset($subs['array'][$key])){
29
+                        elseif (isset($subs['array'][$key])) {
30 30
                             $this->$key[] = new ($subs['array'][$key]) ($sub_value);
31 31
                         }
32 32
                         else {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                         }
35 35
                     }
36 36
                 }
37
-                else{
37
+                else {
38 38
                     $this->$key = $value;
39 39
                     if (ucfirst($key) === basename(get_class($this)).'_id') {
40 40
                         $this->{'id'} = $value;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function __call(string $name, array $arguments) {
49 49
         $name = strtolower($name);
50 50
         if (str_starts_with($name, 'set')) {
51
-            $name = substr($name,3);
51
+            $name = substr($name, 3);
52 52
             if (isset($arguments[0])) {
53 53
                 $this->$name = $arguments[0];
54 54
             }
Please login to merge, or discard this patch.