@@ -57,14 +57,14 @@ discard block |
||
57 | 57 | } |
58 | 58 | } |
59 | 59 | $dto[$property->getName()] = $value; |
60 | - } else { |
|
60 | + }else { |
|
61 | 61 | $type = InjectorHelper::extractVarType($property->getDocComment()); |
62 | 62 | $dto[$property->getName()] = $this->checkCastedValue($property->getValue($this), $type); |
63 | 63 | } |
64 | 64 | } |
65 | 65 | } |
66 | - } catch (\Exception $e) { |
|
67 | - Logger::log(get_class($this) . ': ' . $e->getMessage(), LOG_ERR); |
|
66 | + }catch (\Exception $e) { |
|
67 | + Logger::log(get_class($this).': '.$e->getMessage(), LOG_ERR); |
|
68 | 68 | } |
69 | 69 | return $dto; |
70 | 70 | } |
@@ -101,12 +101,12 @@ discard block |
||
101 | 101 | $this->$key[] = $dto; |
102 | 102 | } |
103 | 103 | } |
104 | - } else { |
|
104 | + }else { |
|
105 | 105 | $this->$key = clone $this->__cache[$type]; |
106 | 106 | $this->$key->fromArray($value); |
107 | 107 | } |
108 | 108 | } |
109 | - } else { |
|
109 | + }else { |
|
110 | 110 | $this->castValue($key, $value, $type); |
111 | 111 | } |
112 | 112 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | /** |
134 | 134 | * @return mixed |
135 | 135 | */ |
136 | - public function jsonSerialize(): array|string|null |
|
136 | + public function jsonSerialize(): array | string | null |
|
137 | 137 | { |
138 | 138 | return $this->toArray(); |
139 | 139 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | $value = (bool)$rawValue; |
193 | 193 | break; |
194 | 194 | } |
195 | - } else { |
|
195 | + }else { |
|
196 | 196 | $value = $rawValue; |
197 | 197 | } |
198 | 198 | return $value; |