| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | abstract class BaseDataProvider |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Copy of query. |
||
| 18 | * |
||
| 19 | * @var Builder $query |
||
| 20 | */ |
||
| 21 | protected $query; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * EloquentDataProvider constructor. |
||
| 25 | * @param Builder $query |
||
| 26 | */ |
||
| 27 | public function __construct(Builder $query) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Request $request |
||
| 34 | */ |
||
| 35 | public function get(Request $request) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get rows count. |
||
| 41 | * |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getCount(): int |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Apply query sort. |
||
| 51 | * |
||
| 52 | * @param string $column |
||
| 53 | * @param string $direction |
||
| 54 | */ |
||
| 55 | public function sort(string $column, string $direction): void |
||
| 60 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.