@@ -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($name, $value): void |
| 48 | 48 | { |
| 49 | - if (property_exists($this, $this->{$key})){ |
|
| 49 | + if (property_exists($this, $this->{$key})) { |
|
| 50 | 50 | $this->{$key} = $value; |
| 51 | 51 | } |
| 52 | 52 | $this->dataModelArray[$name] = $value; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | function __isset($isset) { |
| 60 | 60 | |
| 61 | 61 | $result = isset($this->dataModelArray[$isset]); |
| 62 | - if (property_exists($this, $this->{$key})){ |
|
| 62 | + if (property_exists($this, $this->{$key})) { |
|
| 63 | 63 | $result = isset($this->{$isset}); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | foreach ($params as $key => $item) { |
| 76 | 76 | $this->dataModelArray[$key] = $item; |
| 77 | - if (property_exists($this, $this->{$key})){ |
|
| 77 | + if (property_exists($this, $this->{$key})) { |
|
| 78 | 78 | $this->{$key} = $item; |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | return $classname . ' {' . implode(', ', array_map( |
| 133 | - function ($p_0) use ($data) { |
|
| 133 | + function($p_0) use ($data) { |
|
| 134 | 134 | $p_0->setAccessible(true); |
| 135 | 135 | |
| 136 | 136 | return $p_0->getName() . ': ' . $p_0->getValue($data); |