We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 4 |
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 ?\Closure $configure = null |
||
16 | ) { |
||
17 | $this->crud ??= \Backpack\CRUD\Backpack::crudFromController($controller); |
||
|
|||
18 | $this->tableId = 'crudTable_'.uniqid(); |
||
19 | |||
20 | // Apply the configuration if provided |
||
21 | if ($this->configure) { |
||
22 | ($this->configure)($this->crud); |
||
23 | } |
||
35 |