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 | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function crud(CrudControllerContract $controller): CrudPanel |
||
13 | { |
||
14 | $controllerClass = get_class($controller); |
||
15 | |||
16 | if (isset($this->cruds[$controllerClass])) { |
||
17 | return $this->cruds[$controllerClass]; |
||
18 | } |
||
19 | |||
20 | $instance = new CrudPanel(); |
||
21 | |||
22 | $this->cruds[$controllerClass] = $instance; |
||
23 | |||
24 | return $this->cruds[$controllerClass]; |
||
25 | } |
||
53 |