| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 3 | public static function build(): array |
|
| 15 | { |
||
| 16 | return |
||
| 17 | [ |
||
| 18 | 1 | 'name' => 'permissions', |
|
| 19 | 1 | 'type' => Type::nonNull(_types()->get(AllPermissionsType::class)), |
|
| 20 | 1 | 'description' => 'All permissions for currently logged in user', |
|
| 21 | 'args' => [ |
||
| 22 | ], |
||
| 23 | 'resolve' => function ($root, array $args, $context, ResolveInfo $info) { |
||
| 24 | 3 | $contexts = $args; |
|
| 25 | |||
| 26 | // Return keys with some dummy data to keep the resolving process going deeper in types |
||
| 27 | return [ |
||
| 28 | 3 | 'crud' => ['contexts' => $contexts], |
|
| 29 | ]; |
||
| 34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.