| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function getColumns() |
||
| 15 | { |
||
| 16 | $dataset = [ |
||
| 17 | [ |
||
| 18 | 'title' => trans('general.name'), |
||
| 19 | 'value' => function (User $data) { |
||
| 20 | return $data->name; |
||
| 21 | }, |
||
| 22 | ], |
||
| 23 | [ |
||
| 24 | 'title' => trans('auth.email'), |
||
| 25 | 'value' => function (User $data) { |
||
| 26 | return $data->email; |
||
| 27 | }, |
||
| 28 | ], |
||
| 29 | [ |
||
| 30 | 'title' => trans('general.created'), |
||
| 31 | 'value' => function (User $data) { |
||
| 32 | return $data->created_at; |
||
| 33 | }, |
||
| 34 | ], |
||
| 35 | ]; |
||
| 36 | |||
| 37 | return $dataset; |
||
| 38 | } |
||
| 40 |