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 |
||
| 12 | 121 | public function __construct(ContainerInterface $container, $name = 'service') |
|
| 13 | { |
||
| 14 | 121 | parent::__construct( |
|
| 15 | 121 | $name, |
|
| 16 | function (string $serviceId): string { |
||
| 17 | 4 | return "\$globalVariable->get('container')->get($serviceId)"; |
|
| 18 | 121 | }, |
|
| 19 | function ($arguments, $serviceId) use ($container): ?object { |
||
| 20 | return $container->get($serviceId); |
||
| 21 | 121 | } |
|
| 25 |