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

PermissionsController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
ccs 0
cts 9
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 4 1
1
<?php namespace Arcanesoft\Auth\Http\Controllers\Foundation;
2
3
use Arcanesoft\Auth\Bases\FoundationController;
4
5
/**
6
 * Class     PermissionsController
7
 *
8
 * @package  Arcanesoft\Auth\Http\Controllers\Foundation
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class PermissionsController 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-permissions');
25
        $this->addBreadcrumbRoute('Permissions', 'auth::foundation.permissions.index');
0 ignored issues
show
Documentation Bug introduced by
The method addBreadcrumbRoute does not exist on object<Arcanesoft\Auth\H...\PermissionsController>? 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