Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — next (#5688)
by Pedro
27:12 queued 12:27
created

Datatable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A render() 0 4 1
1
<?php
2
3
namespace Backpack\CRUD\app\Library\Datatable;
4
5
use Backpack\CRUD\app\Library\CrudPanel\CrudPanel;
6
use Illuminate\View\Component;
7
8
class Datatable extends Component
9
{
10
    private CrudPanel $crud;
11
12
    public function __construct(private string $controller)
13
    {
14
        $this->crud = \Backpack\CRUD\Backpack::crudFromController($controller);
0 ignored issues
show
Bug introduced by
The method crudFromController() does not exist on Backpack\CRUD\Backpack. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
        /** @scrutinizer ignore-call */ 
15
        $this->crud = \Backpack\CRUD\Backpack::crudFromController($controller);
Loading history...
15
    }
16
17
    public function render()
18
    {
19
        return view('crud::datatable.datatable', [
20
            'crud' => $this->crud,
21
        ]);
22
    }
23
}
24