Controller   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A beforeViewRender() 0 4 1
1
<?php namespace Arcanesoft\Blog\Http\Controllers\Front;
2
3
use Arcanesoft\Core\Http\Controllers\Controller as BaseController;
4
5
/**
6
 * Class     Controller
7
 *
8
 * @package  Arcanesoft\Blog\Http\Controllers\Front
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class Controller extends BaseController
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Controller constructor.
20
     */
21
    public function __construct()
22
    {
23
        parent::__construct();
24
25
        $this->registerBreadcrumbs('public');
26
        $this->addBreadcrumbRoute('Blog', 'public::blog.posts.index');
27
    }
28
29
    /* -----------------------------------------------------------------
30
     |  Other Methods
31
     | -----------------------------------------------------------------
32
     */
33
34
    /**
35
     * Do random stuff before rendering view.
36
     */
37
    protected function beforeViewRender()
38
    {
39
        $this->loadBreadcrumbs();
40
    }
41
}
42