@@ -26,7 +26,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |