| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.008 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 1 | public static function build(): array |
|
| 13 | { |
||
| 14 | return |
||
| 15 | [ |
||
| 16 | 1 | 'name' => 'viewer', |
|
| 17 | 1 | 'type' => _types()->getOutput(User::class), |
|
| 18 | 1 | 'description' => 'Represents currently logged-in user', |
|
| 19 | 'resolve' => function ($root, array $args): ?User { |
||
|
2 ignored issues
–
show
|
|||
| 20 | return User::getCurrent(); |
||
| 21 | 1 | }, |
|
| 25 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.