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 | 5 |
| CRAP Score | 1.0046 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 129 | public function __construct(Security $security) |
|
| 15 | { |
||
| 16 | 129 | parent::__construct( |
|
| 17 | 129 | 'getUser', |
|
| 18 | function (): string { |
||
| 19 | 9 | return sprintf('\%s::getUser($globalVariable)', Helper::class); |
|
| 20 | 129 | }, |
|
| 21 | function () use ($security): ?UserInterface { |
||
| 22 | return $security->getUser(); |
||
| 23 | 129 | } |
|
| 27 |