@@ -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 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | if (is_array($data) || is_object($data)) { |
113 | 113 | $result = []; |
114 | 114 | foreach ($data as $key => $value) { |
115 | - if(strlen($value) > 0) |
|
115 | + if (strlen($value)>0) |
|
116 | 116 | $result[$key] = (is_array($value) || is_object($value)) ? $this->toMap($value) : $value; |
117 | 117 | } |
118 | 118 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | return $classname . ' {' . implode(', ', array_map( |
165 | - function ($p_0) use ($data) { |
|
165 | + function($p_0) use ($data) { |
|
166 | 166 | $p_0->setAccessible(true); |
167 | 167 | |
168 | 168 | return $p_0->getName() . ': ' . $p_0->getValue($data); |