Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
18 | public function toArray($request) |
||
19 | { |
||
20 | return [ |
||
21 | 'id' => $this->id, |
||
|
|||
22 | 'name' => $this->name, |
||
23 | 'location' => $this->location, |
||
24 | 'published' => $this->published, |
||
25 | 'description' => $this->description, |
||
26 | 'url' => $this->url, |
||
27 | 'video_url' => $this->video_url, |
||
28 | 'start' => Helper::getDates($this->start), |
||
29 | 'end' => Helper::getDates($this->end), |
||
30 | 'is_past' => Carbon::parse($this->end)->isPast(), |
||
31 | 'date' => Carbon::parse($this->start)->format('Y/m/d'), |
||
32 | 'avatar' => ImageHelper::getImage('events', $this->image, config('faithgen-sdk.ministries-server')), |
||
33 | 'guests' => Guest::collection($this->guests), |
||
34 | ]; |
||
37 |