@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function __get($name) |
37 | 37 | { |
38 | - return $this->{$name} ?? ($this->dataModelArray[$name]?? ""); |
|
38 | + return $this->{$name} ?? ($this->dataModelArray[$name] ?? ""); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function __set($key, $value): void |
47 | 47 | { |
48 | - if (property_exists($this, $key)){ |
|
48 | + if (property_exists($this, $key)) { |
|
49 | 49 | $this->{$key} = $value; |
50 | 50 | } |
51 | 51 | $this->dataModelArray[$key] = $value; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | function __isset($key) { |
59 | 59 | |
60 | 60 | $result = isset($this->dataModelArray[$key]); |
61 | - if (property_exists($this, $key)){ |
|
61 | + if (property_exists($this, $key)) { |
|
62 | 62 | $result = isset($this->{$key}); |
63 | 63 | } |
64 | 64 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | { |
81 | 81 | foreach ($params as $key => $item) { |
82 | 82 | $this->dataModelArray[$key] = $item; |
83 | - if (property_exists($this, $key)){ |
|
83 | + if (property_exists($this, $key)) { |
|
84 | 84 | $this->{$key} = $item; |
85 | 85 | } |
86 | 86 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | |
138 | 138 | return $classname . ' {' . implode(', ', array_map( |
139 | - function ($p_0) use ($data) { |
|
139 | + function($p_0) use ($data) { |
|
140 | 140 | $p_0->setAccessible(true); |
141 | 141 | |
142 | 142 | return $p_0->getName() . ': ' . $p_0->getValue($data); |