Completed
Push — master ( 1d96a4...49a6f0 )
by ARCANEDEV
04:17
created

RolesController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Http\Controllers\Foundation;
2
3
use Arcanesoft\Auth\Bases\FoundationController;
4
5
/**
6
 * Class     RolesController
7
 *
8
 * @package  Arcanesoft\Auth\Http\Controllers\Foundation
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class RolesController extends FoundationController
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Instantiate the controller.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct();
23
24
        $this->setCurrentPage('auth-roles');
25
        $this->addBreadcrumbRoute('Roles', 'auth::foundation.roles.index');
0 ignored issues
show
Documentation Bug introduced by
The method addBreadcrumbRoute does not exist on object<Arcanesoft\Auth\H...dation\RolesController>? Since you implemented __call, maybe consider adding a @method annotation.

If you implement __call and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.

This is often the case, when __call is implemented by a parent class and only the child class knows which methods exist:

class ParentClass {
    private $data = array();

    public function __call($method, array $args) {
        if (0 === strpos($method, 'get')) {
            return $this->data[strtolower(substr($method, 3))];
        }

        throw new \LogicException(sprintf('Unsupported method: %s', $method));
    }
}

/**
 * If this class knows which fields exist, you can specify the methods here:
 *
 * @method string getName()
 */
class SomeClass extends ParentClass { }
Loading history...
26
    }
27
28
    /* ------------------------------------------------------------------------------------------------
29
     |  Main Functions
30
     | ------------------------------------------------------------------------------------------------
31
     */
32
    public function index()
33
    {
34
        //
35
    }
36
37
    public function create()
38
    {
39
        //
40
    }
41
42
    public function store()
43
    {
44
        //
45
    }
46
47
    public function show($roleId)
0 ignored issues
show
Unused Code introduced by
The parameter $roleId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
48
    {
49
        //
50
    }
51
52
    public function edit($roleId)
0 ignored issues
show
Unused Code introduced by
The parameter $roleId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
53
    {
54
        //
55
    }
56
57
    public function update($roleId)
0 ignored issues
show
Unused Code introduced by
The parameter $roleId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
58
    {
59
        //
60
    }
61
62
    public function delete($roleId)
0 ignored issues
show
Unused Code introduced by
The parameter $roleId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
63
    {
64
        //
65
    }
66
}
67