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