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

Datalist   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 12
c 1
b 0
f 1
dl 0
loc 29
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A render() 0 8 2
1
<?php
2
3
namespace Backpack\CRUD\app\View\Components;
4
5
use Illuminate\View\Component;
6
7
class Datalist 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.datalist');
36
    }
37
}
38