Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
39 | public function checkAccess(...$params) |
||
40 | { |
||
41 | if ($this->checkAccess) { |
||
42 | if (call_user_func_array($this->checkAccess, $params) === false) { |
||
43 | /** @noinspection PhpVoidFunctionResultUsedInspection */ |
||
44 | return $this->handleUnauthorizedResponse(); |
||
45 | }; |
||
46 | } |
||
47 | |||
48 | return true; |
||
49 | } |
||
50 | |||
80 |