1 | <?php |
||
8 | class UsersDataTable extends DataTable |
||
9 | { |
||
10 | /** |
||
11 | * Build DataTable class. |
||
12 | * |
||
13 | * @return \Yajra\Datatables\Engines\BaseEngine |
||
14 | */ |
||
15 | public function dataTable() |
||
21 | |||
22 | /** |
||
23 | * Get the query object to be processed by dataTables. |
||
24 | * |
||
25 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection |
||
26 | */ |
||
27 | public function query() |
||
33 | |||
34 | /** |
||
35 | * Optional method if you want to use html builder. |
||
36 | * |
||
37 | * @return \Yajra\Datatables\Html\Builder |
||
38 | */ |
||
39 | public function html() |
||
57 | |||
58 | /** |
||
59 | * Get columns. |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | protected function getColumns() |
||
73 | |||
74 | /** |
||
75 | * Get filename for export. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function filename() |
||
83 | } |
||
84 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.