Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function toArray($request) |
||
24 | { |
||
25 | $meta = Arr::except($this->resource->toArray(), [ |
||
26 | 'data', |
||
27 | ]); |
||
28 | $meta['links'] = array_slice($meta['links'], 1, -1); |
||
29 | |||
30 | return [ |
||
31 | 'data' => $this->collection->map->toArray($request, $this->mapOptions)->all(), |
||
32 | 'meta' => $meta, |
||
33 | ]; |
||
36 |