1 | <?php |
||
14 | class ActivitiesDataTable extends LogsDataTable |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected $transformer = ActivityTransformer::class; |
||
20 | |||
21 | /** |
||
22 | * Get the query object to be processed by dataTables. |
||
23 | * |
||
24 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
|
|||
25 | */ |
||
26 | public function query() |
||
32 | |||
33 | /** |
||
34 | * Display ajax response. |
||
35 | * |
||
36 | * @return \Illuminate\Http\JsonResponse |
||
37 | */ |
||
38 | public function ajax() |
||
44 | |||
45 | /** |
||
46 | * Get columns. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getColumns(): array |
||
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.