Passed
Push — master ( 62919d...1f65fa )
by Iman
04:23
created

CbLayoutLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A cbLayoutLoader() 0 7 1
1
<?php
2
3
namespace Crocodicstudio\Crudbooster\controllers\CBController;
4
5
trait CbLayoutLoader
6
{
7
    public $load_js = [];
8
9
    public $load_css = [];
10
11
    public $scriptJs = null;
12
13
    public $style_css = null;
14
15
    public $alert = [];
16
17
    protected function cbLayoutLoader()
18
    {
19
        $this->data['alerts'] = $this->alert;
0 ignored issues
show
Bug Best Practice introduced by
The property data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
20
        $this->data['style_css'] = $this->style_css;
21
        $this->data['load_js'] = $this->load_js;
22
        $this->data['scriptJs'] = $this->scriptJs;
23
        $this->data['load_css'] = $this->load_css;
24
    }
25
}