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