We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | public function __construct( |
||
11 | private string $controller, |
||
12 | private ?CrudPanel $crud = null, |
||
13 | private bool $updatesUrl = true, |
||
14 | private ?string $tableId = null, |
||
15 | private array $tableOptions = [] |
||
16 | ) { |
||
17 | $this->crud ??= \Backpack\CRUD\Backpack::crudFromController($controller); |
||
|
|||
18 | $this->tableId = 'crudTable_'.uniqid(); |
||
19 | |||
20 | // Merge default options with provided options |
||
21 | $this->tableOptions = array_merge([ |
||
22 | 'pageLength' => $this->crud->getDefaultPageLength(), |
||
23 | 'searchDelay' => $this->crud->getOperationSetting('searchDelay'), |
||
24 | 'searchableTable' => $this->crud->getOperationSetting('searchableTable') ?? true, |
||
25 | ], $tableOptions); |
||
26 | } |
||
38 |