Issues (148)

src/Controller/Helper/IsAllowed.php (1 issue)

1
<?php
2
3
/**
4
 * Bluz Framework Component
5
 *
6
 * @copyright Bluz PHP Team
7
 * @link      https://github.com/bluzphp/framework
8
 */
9
10
declare(strict_types=1);
11
12
namespace Bluz\Controller\Helper;
13
14
use Bluz\Controller\Controller;
15
use Bluz\Proxy\Acl;
16
17
/**
18
 * Check privilege
19
 *
20
 * @param string $privilege
21
 *
22
 * @return bool
23
 */
24
return
25 1
    function (string $privilege) {
26
        /**
27
         * @var Controller $this
28
         */
29 1
        return Acl::isAllowed($this->module, $privilege);
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $this seems to be never defined.
Loading history...
30
    };
31