Controller::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\Admin\System;
2
3
use Arcanesoft\Foundation\Http\Controllers\Admin\Controller as BaseController;
4
5
/**
6
 * Class     Controller
7
 *
8
 * @package  Arcanesoft\Foundation\Http\Controllers\Admin\System
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->addBreadcrumbRoute(trans('foundation::sidebar.system'), 'admin::foundation.system.information.index');
0 ignored issues
show
Bug introduced by
The function trans was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
        $this->addBreadcrumbRoute(/** @scrutinizer ignore-call */ trans('foundation::sidebar.system'), 'admin::foundation.system.information.index');
Loading history...
26
    }
27
}
28