DashboardController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 32
c 0
b 0
f 0
ccs 0
cts 12
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A index() 0 9 1
1
<?php namespace Arcanesoft\Auth\Http\Controllers\Admin;
2
3
use Arcanesoft\Auth\Policies\DashboardPolicy;
4
5
/**
6
 * Class     DashboardController
7
 *
8
 * @package  Arcanesoft\Auth\Http\Controllers\Foundation
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class DashboardController extends Controller
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Instantiate the controller.
20
     */
21
    public function __construct()
22
    {
23
        parent::__construct();
24
25
        $this->setCurrentPage('auth-dashboard');
26
    }
27
28
    /* -----------------------------------------------------------------
29
     |  Main Methods
30
     | -----------------------------------------------------------------
31
     */
32
33
    public function index()
34
    {
35
        $this->authorize(DashboardPolicy::PERMISSION_STATS);
36
37
        $this->setTitle($title = trans('auth::dashboard.titles.statistics'));
38
        $this->addBreadcrumb($title);
39
40
        return $this->view('admin.dashboard');
41
    }
42
}
43