| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function toArray() |
||
| 25 | { |
||
| 26 | $urlPicture = $this->picture != "" ? asset('storage/'.str_replace('app/public/', '', $this->picture)) : null; |
||
| 27 | return [ |
||
| 28 | 'uuid' => $this->id, |
||
| 29 | 'email' => $this->email, |
||
| 30 | 'firstname' => $this->firstname, |
||
| 31 | 'lastname' => $this->lastname, |
||
| 32 | 'path_picture' => $this->picture, |
||
| 33 | 'url_picture' => $urlPicture, |
||
| 34 | ]; |
||
| 37 |