We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1.037 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | 120 | public function __construct(AuthorizationCheckerInterface $authorizationChecker) |
|
12 | { |
||
13 | 120 | parent::__construct( |
|
14 | 120 | 'isGranted', |
|
15 | function ($attributes, $object = null) { |
||
16 | return "\$globalVariable->get('container')->get('security.authorization_checker')->isGranted($attributes, $object)"; |
||
17 | 120 | }, |
|
18 | function ($arguments, $attributes, $object = null) use ($authorizationChecker) { |
||
19 | return $authorizationChecker->isGranted($attributes, $object); |
||
20 | 120 | } |
|
24 |