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 | 130 | public function __construct(ResolverResolver $resolver, $name = 'resolver') |
|
13 | { |
||
14 | 130 | parent::__construct( |
|
15 | 130 | $name, |
|
16 | function (string $alias, string $args = '[]'): string { |
||
17 | 22 | return "\$globalVariable->get('resolverResolver')->resolve([$alias, $args])"; |
|
18 | 130 | }, |
|
19 | function ($arguments, $alias, $args) use ($resolver) { |
||
20 | return $resolver->resolve([$alias, $args]); |
||
21 | 130 | } |
|
25 |