Completed
Push — master ( d3e6cc...2f8137 )
by Damien
16:23 queued 06:10
created

AbstractController::behaviors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 9.7
c 0
b 0
f 0
cc 1
nc 1
nop 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A AbstractController::checkAdminAccess() 0 5 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\core\controllers;
8
9
class AbstractController extends \craft\web\Controller
10
{
11
12
    /************************************************
13
     * Access Control
14
     ************************************************/
15
16
    /**
17
     * @return bool
18
     * @throws \yii\web\ForbiddenHttpException
19
     */
20
    public function checkAdminAccess(): bool
21
    {
22
        $this->requireAdmin();
23
        return true;
24
    }
25
}
26