@@ -231,8 +231,7 @@ discard block |
||
231 | 231 | } |
232 | 232 | $array[$key] = $this->$key->format($dateFormat); |
233 | 233 | } |
234 | - } |
|
235 | - elseif ($this->$key instanceof ArrayCollection || $this->$key instanceof PersistentCollection) |
|
234 | + } elseif ($this->$key instanceof ArrayCollection || $this->$key instanceof PersistentCollection) |
|
236 | 235 | { |
237 | 236 | $ids = []; |
238 | 237 | foreach ($this->$key->getValues() as $item) |
@@ -240,19 +239,16 @@ discard block |
||
240 | 239 | $ids[] = $item->getId(); |
241 | 240 | } |
242 | 241 | $array[$key] = $ids; |
243 | - } |
|
244 | - else |
|
242 | + } else |
|
245 | 243 | { |
246 | 244 | $array[$key] = $this->$key->getId(); |
247 | 245 | } |
248 | - } |
|
249 | - else |
|
246 | + } else |
|
250 | 247 | { |
251 | 248 | if ($metaDataKey['type'] == 'decimal') |
252 | 249 | { |
253 | 250 | $array[$key] = (float) $this->$key; |
254 | - } |
|
255 | - else |
|
251 | + } else |
|
256 | 252 | { |
257 | 253 | $array[$key] = $this->$key; |
258 | 254 | } |