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
Push — datagrid ( 363580 )
by Cristian
17:00
created

Datagrid::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 3
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Backpack\CRUD\app\View\Components;
4
5
use Illuminate\View\Component;
6
7
class Datagrid extends Component
8
{
9
    public $columns;
10
    public $entry;
11
    public $crud;
12
    public $displayActionsColumn;
13
14
    /**
15
     * Create a new component instance.
16
     */
17
    public function __construct($columns, $entry, $crud, $displayActionsColumn = true)
18
    {
19
        $this->columns = $columns;
20
        $this->entry = $entry;
21
        $this->crud = $crud;
22
        $this->displayActionsColumn = $displayActionsColumn;
23
    }
24
25
    /**
26
     * Get the view / contents that represent the component.
27
     */
28
    public function render()
29
    {
30
        // if no columns are set, don't load any view
31
        if (empty($this->columns)) {
32
            return '';
33
        }
34
35
        return view('crud::components.datagrid');
36
    }
37
}
38