Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function toArray($request) |
||
1 ignored issue
–
show
|
|||
16 | { |
||
17 | return array_merge(parent::toArray($request), [ |
||
18 | 'manager' => new JsonResource($this->whenLoaded('manager')), |
||
19 | 'criteria' => JsonResource::collection($this->whenLoaded('criteria')), |
||
20 | ]); |
||
23 |