Completed
Push — master ( 4d5a46...0c8810 )
by ARCANEDEV
09:08
created

Controller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
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 30
ccs 0
cts 9
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A beforeViewRender() 0 4 1
1
<?php namespace Arcanesoft\Blog\Http\Controllers\Front;
2
3
use Arcanesoft\Core\Bases\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
     * Controller constructor.
19
     *
20
     * @todo: Refactor this constructor to the core
21
     */
22
    public function __construct()
23
    {
24
        parent::__construct();
25
26
        $this->registerBreadcrumbs('public');
27
    }
28
29
    /* ------------------------------------------------------------------------------------------------
30
     |  Other Functions
31
     | ------------------------------------------------------------------------------------------------
32
     */
33
    /**
34
     * Do random stuff before rendering view.
35
     */
36
    protected function beforeViewRender()
37
    {
38
        $this->loadBreadcrumbs();
39
    }
40
}
41