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 | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 145 | public function __construct(Security $security) |
|
13 | { |
||
14 | 145 | parent::__construct( |
|
15 | 145 | 'isGranted', |
|
16 | static function ($attributes, $object = 'null'): string { |
||
17 | 1 | return \sprintf('$globalVariable->get(\'security\')->isGranted(%s, %s)', $attributes, $object); |
|
18 | 145 | }, |
|
19 | static function ($_, $attributes, $object = null) use ($security): bool { |
||
20 | 1 | return $security->isGranted($attributes, $object); |
|
21 | 145 | } |
|
25 |