Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 11 | public function toArray($request) |
|
16 | { |
||
17 | return [ |
||
18 | 11 | 'id' => $this->id, |
|
|
|||
19 | 11 | 'active' => $this->active, |
|
20 | 11 | 'name' => $this->name, |
|
21 | 11 | 'email' => $this->email, |
|
22 | 11 | 'email_verified_at' => $this->email_verified_at, |
|
23 | 11 | 'role' => $this->role, |
|
24 | 11 | 'created_at' => $this->created_at, |
|
25 | 11 | 'updated_at' => $this->updated_at, |
|
26 | 11 | 'authorized_actions' => $this->authorizedActions(), |
|
27 | ]; |
||
30 |