@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * @param array|null $params |
11 | 11 | */ |
12 | - public function __construct(array $params = null){ |
|
12 | + public function __construct(array $params = null) { |
|
13 | 13 | if (!empty($params)) |
14 | 14 | $this->fromMapToModel($params); |
15 | 15 | } |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | $re_2 = new ReflectionObject($data); |
72 | 72 | $classname = get_class($this); |
73 | 73 | if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1); |
74 | - return $classname .' {' . implode(', ', array_map( |
|
74 | + return $classname . ' {' . implode(', ', array_map( |
|
75 | 75 | function($p_0) use ($data) |
76 | 76 | { |
77 | 77 | $p_0->setAccessible(true); |
78 | - return $p_0->getName() .': '. $p_0->getValue($data); |
|
79 | - }, $re_2->getProperties())) .'}'; |
|
78 | + return $p_0->getName() . ': ' . $p_0->getValue($data); |
|
79 | + }, $re_2->getProperties())) . '}'; |
|
80 | 80 | |
81 | 81 | } |
82 | 82 | } |
83 | 83 | \ No newline at end of file |
@@ -10,8 +10,9 @@ discard block |
||
10 | 10 | * @param array|null $params |
11 | 11 | */ |
12 | 12 | public function __construct(array $params = null){ |
13 | - if (!empty($params)) |
|
14 | - $this->fromMapToModel($params); |
|
13 | + if (!empty($params)) { |
|
14 | + $this->fromMapToModel($params); |
|
15 | + } |
|
15 | 16 | } |
16 | 17 | |
17 | 18 | /** |
@@ -70,7 +71,9 @@ discard block |
||
70 | 71 | $data = (object) $this->toMap(); |
71 | 72 | $re_2 = new ReflectionObject($data); |
72 | 73 | $classname = get_class($this); |
73 | - if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1); |
|
74 | + if ($pos = strrpos($classname, '\\')) { |
|
75 | + $classname = substr($classname, $pos + 1); |
|
76 | + } |
|
74 | 77 | return $classname .' {' . implode(', ', array_map( |
75 | 78 | function($p_0) use ($data) |
76 | 79 | { |