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

DashboardController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
A cbInit() 0 2 1
1
<?php
2
3
namespace Crocodicstudio\Crudbooster\controllers;
4
5
class DashboardController extends CBController
6
{
7
8
    function index()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
9
    {
10
        // todo: translate dashboard
11
        return $this->cbView('crudbooster::dashboard', ['page_title' => '<strong>'.cbTrans('text_dashboard').'</strong>']);
12
    }
13
14
    public function cbInit()
15
    {
16
        // TODO: Implement cbInit() method.
17
    }
18
}