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