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