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 | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1.048 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 119 | public function __construct(GlobalVariables $globalVariables, $name = 'resolveSingleInputCallback') |
|
| 14 | { |
||
| 15 | 119 | parent::__construct( |
|
| 16 | 119 | $name, |
|
| 17 | function ($resolveSingleInput) { |
||
| 18 | 1 | $code = 'function ($value) use ('.TypeGenerator::USE_FOR_CLOSURES.', $args, $context, $info) { '; |
|
| 19 | 1 | $code .= 'return '.$resolveSingleInput.'; }'; |
|
| 20 | |||
| 21 | 1 | return $code; |
|
| 22 | 119 | }, |
|
| 23 | // TODO: finish this callback |
||
| 24 | function ($arguments, $mutateAndGetPayload) use ($globalVariables) { |
||
| 25 | [ |
||
| 26 | 'context' => $context, |
||
| 27 | 'args' => $args, |
||
| 28 | 'info' => $info |
||
| 29 | ] = $arguments; |
||
| 30 | |||
| 31 | return function($value) use ($mutateAndGetPayload, $globalVariables, $args, $context, $info) { |
||
| 32 | return $mutateAndGetPayload; |
||
| 33 | }; |
||
| 38 |
This check looks for imports that have been defined, but are not used in the scope.