DashboardController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
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 37
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

2 Methods

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