| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function getSharedData(): array |
||
| 31 | { |
||
| 32 | $data = $this->request->getJsonBody(); |
||
| 33 | |||
| 34 | $data['meta'] = !empty($data['meta']) ? $data['meta'] : []; |
||
| 35 | $data['assets'] = !empty($data['assets']) ? $data['assets'] : []; |
||
| 36 | |||
| 37 | $data = array_merge($data, $data['meta'], $data['assets']); |
||
| 38 | |||
| 39 | unset($data['meta'], $data['assets']); |
||
| 40 | |||
| 41 | return $data; |
||
| 42 | } |
||
| 44 |