@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function toMap($objArray = null): ?array |
55 | 55 | { |
56 | - $data = $objArray??$this; |
|
56 | + $data = $objArray ?? $this; |
|
57 | 57 | if (is_array($data) || is_object($data)) |
58 | 58 | { |
59 | 59 | $result = []; |
@@ -83,12 +83,12 @@ discard block |
||
83 | 83 | $re_2 = new ReflectionObject($data); |
84 | 84 | $classname = get_class($this); |
85 | 85 | if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1); |
86 | - return $classname .' {' . implode(', ', array_map( |
|
86 | + return $classname . ' {' . implode(', ', array_map( |
|
87 | 87 | function($p_0) use ($data) |
88 | 88 | { |
89 | 89 | $p_0->setAccessible(true); |
90 | - return $p_0->getName() .': '. $p_0->getValue($data); |
|
91 | - }, $re_2->getProperties())) .'}'; |
|
90 | + return $p_0->getName() . ': ' . $p_0->getValue($data); |
|
91 | + }, $re_2->getProperties())) . '}'; |
|
92 | 92 | |
93 | 93 | } |
94 | 94 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function __get($attribute):string |
100 | 100 | { |
101 | - return $this->{$attribute}??""; |
|
101 | + return $this->{$attribute} ?? ""; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |