ActionAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A _isAllowed() 0 4 1
1
<?php
2
/**
3
 * File: ActionAbstract.php
4
 *
5
 * @author      Maciej Sławik <[email protected]>
6
 * Github:      https://github.com/maciejslawik
7
 */
8
9
namespace MSlwk\ICatalogue\Controller\Adminhtml\Catalogue;
10
11
use Magento\Backend\App\Action;
12
13
/**
14
 * Class ActionAbstract
15
 *
16
 * @package MSlwk\ICatalogue\Controller\Adminhtml\Catalogue
17
 */
18
abstract class ActionAbstract extends Action
19
{
20
    /**
21
     * @return bool
22
     */
23
    protected function _isAllowed()
24
    {
25
        return $this->_authorization->isAllowed('MSlwk_ICatalogue::catalogue_manage');
26
    }
27
}
28