We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 366-375 (lines=10) @@ | ||
| 363 | } |
|
| 364 | } |
|
| 365 | ||
| 366 | if ($fieldAnnotation->argsBuilder) { |
|
| 367 | if (\is_string($fieldAnnotation->argsBuilder)) { |
|
| 368 | $fieldConfiguration['argsBuilder'] = $fieldAnnotation->argsBuilder; |
|
| 369 | } elseif (\is_array($fieldAnnotation->argsBuilder)) { |
|
| 370 | list($builder, $builderConfig) = $fieldAnnotation->argsBuilder; |
|
| 371 | $fieldConfiguration['argsBuilder'] = ['builder' => $builder, 'config' => $builderConfig]; |
|
| 372 | } else { |
|
| 373 | throw new InvalidArgumentException(\sprintf('The attribute "argsBuilder" on Graphql annotation "@Field" defined on %s must be a string or an array where first index is the builder name and the second is the config.', $target)); |
|
| 374 | } |
|
| 375 | } |
|
| 376 | ||
| 377 | if ($fieldAnnotation->fieldBuilder) { |
|
| 378 | if (\is_string($fieldAnnotation->fieldBuilder)) { |
|
| @@ 377-387 (lines=11) @@ | ||
| 374 | } |
|
| 375 | } |
|
| 376 | ||
| 377 | if ($fieldAnnotation->fieldBuilder) { |
|
| 378 | if (\is_string($fieldAnnotation->fieldBuilder)) { |
|
| 379 | $fieldConfiguration['builder'] = $fieldAnnotation->fieldBuilder; |
|
| 380 | } elseif (\is_array($fieldAnnotation->fieldBuilder)) { |
|
| 381 | list($builder, $builderConfig) = $fieldAnnotation->fieldBuilder; |
|
| 382 | $fieldConfiguration['builder'] = $builder; |
|
| 383 | $fieldConfiguration['builderConfig'] = $builderConfig ?: []; |
|
| 384 | } else { |
|
| 385 | throw new InvalidArgumentException(\sprintf('The attribute "argsBuilder" on Graphql annotation "@Field" defined on %s must be a string or an array where first index is the builder name and the second is the config.', $target)); |
|
| 386 | } |
|
| 387 | } |
|
| 388 | ||
| 389 | if ($accessAnnotation) { |
|
| 390 | $fieldConfiguration['access'] = self::formatExpression($accessAnnotation->value); |
|