@@ -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 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | if (is_array($data) || is_object($data)) { |
107 | 107 | $result = []; |
108 | 108 | foreach ($data as $key => $value) { |
109 | - if(strlen($value) > 0) |
|
109 | + if (strlen($value)>0) |
|
110 | 110 | $result[$key] = (is_array($value) || is_object($value)) ? $this->toMap($value) : $value; |
111 | 111 | } |
112 | 112 | |
@@ -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); |
@@ -106,8 +106,9 @@ |
||
106 | 106 | if (is_array($data) || is_object($data)) { |
107 | 107 | $result = []; |
108 | 108 | foreach ($data as $key => $value) { |
109 | - if(strlen($value) > 0) |
|
110 | - $result[$key] = (is_array($value) || is_object($value)) ? $this->toMap($value) : $value; |
|
109 | + if(strlen($value) > 0) { |
|
110 | + $result[$key] = (is_array($value) || is_object($value)) ? $this->toMap($value) : $value; |
|
111 | + } |
|
111 | 112 | } |
112 | 113 | |
113 | 114 | return $result; |