We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
11 | 42 | public function __invoke($parentValue, $args, $context, ResolveInfo $info) |
|
12 | { |
||
13 | 42 | $fieldName = $info->fieldName; |
|
14 | 42 | $value = self::valueFromObjectOrArray($parentValue, $fieldName); |
|
15 | |||
16 | 42 | return $value instanceof \Closure ? $value($parentValue, $args, $context, $info) : $value; |
|
17 | } |
||
44 |