Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | protected function getColumns(): array |
||
51 | { |
||
52 | return [ |
||
53 | 'details' => ['title' => '', 'data' => null, 'defaultContent' => '', 'class' => 'dt-details-control', 'searchable' => false, 'orderable' => false], |
||
54 | 'subject' => ['title' => trans('cortex/foundation::common.subject'), 'name' => 'subject.name', 'searchable' => false, 'orderable' => false, 'render' => 'full.subject_route ? "<a href=\""+full.subject_route+"\">"+data+"</a>" : data', 'responsivePriority' => 0], |
||
55 | 'description' => ['title' => trans('cortex/foundation::common.description'), 'orderable' => false], |
||
56 | 'created_at' => ['title' => trans('cortex/foundation::common.date'), 'render' => "moment(data).format('YYYY-MM-DD, hh:mm:ss A')"], |
||
57 | ]; |
||
58 | } |
||
59 | } |
||
60 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.