| Conditions | 1 |
| Paths | 1 |
| Total Lines | 36 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 17 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | 17 | public function getColumns() |
|
| 15 | { |
||
| 16 | $dataset = [ |
||
| 17 | [ |
||
| 18 | 17 | 'title' => trans('general.first_name'), |
|
| 19 | 'value' => function (Guest $data) { |
||
| 20 | 14 | return $data->first_name; |
|
| 21 | 17 | }, |
|
| 22 | ], |
||
| 23 | [ |
||
| 24 | 17 | 'title' => trans('general.last_name'), |
|
| 25 | 'value' => function (Guest $data) { |
||
| 26 | 14 | return $data->last_name; |
|
| 27 | 17 | }, |
|
| 28 | ], |
||
| 29 | [ |
||
| 30 | 17 | 'title' => trans('general.address'), |
|
| 31 | 'value' => function (Guest $data) { |
||
| 32 | 14 | return $data->address.', '.$data->zip_code.' '.$data->place; |
|
| 33 | 17 | }, |
|
| 34 | ], |
||
| 35 | [ |
||
| 36 | 17 | 'title' => trans('general.PESEL'), |
|
| 37 | 'value' => function (Guest $data) { |
||
| 38 | 14 | return $data->PESEL; |
|
| 39 | 17 | }, |
|
| 40 | ], |
||
| 41 | [ |
||
| 42 | 17 | 'title' => trans('general.contact'), |
|
| 43 | 'value' => function (Guest $data) { |
||
| 44 | 14 | return $data->contact; |
|
| 45 | 17 | }, |
|
| 46 | ], |
||
| 47 | ]; |
||
| 48 | |||
| 49 | 17 | return $dataset; |
|
| 50 | } |
||
| 52 |