We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 357-366 (lines=10) @@ | ||
354 | } |
|
355 | } |
|
356 | ||
357 | if ($fieldAnnotation->argsBuilder) { |
|
358 | if (is_string($fieldAnnotation->argsBuilder)) { |
|
359 | $fieldConfiguration['argsBuilder'] = $fieldAnnotation->argsBuilder; |
|
360 | } elseif (is_array($fieldAnnotation->argsBuilder)) { |
|
361 | list($builder, $builderConfig) = $fieldAnnotation->argsBuilder; |
|
362 | $fieldConfiguration['argsBuilder'] = ['builder' => $builder, 'config' => $builderConfig]; |
|
363 | } else { |
|
364 | throw new \UnexpectValueException(\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)); |
|
365 | } |
|
366 | } |
|
367 | ||
368 | if ($fieldAnnotation->fieldBuilder) { |
|
369 | if (is_string($fieldAnnotation->fieldBuilder)) { |
|
@@ 368-378 (lines=11) @@ | ||
365 | } |
|
366 | } |
|
367 | ||
368 | if ($fieldAnnotation->fieldBuilder) { |
|
369 | if (is_string($fieldAnnotation->fieldBuilder)) { |
|
370 | $fieldConfiguration['builder'] = $fieldAnnotation->fieldBuilder; |
|
371 | } elseif (is_array($fieldAnnotation->fieldBuilder)) { |
|
372 | list($builder, $builderConfig) = $fieldAnnotation->fieldBuilder; |
|
373 | $fieldConfiguration['builder'] = $builder; |
|
374 | $fieldConfiguration['builderConfig'] = $builderConfig ? : []; |
|
375 | } else { |
|
376 | throw new \UnexpectValueException(\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)); |
|
377 | } |
|
378 | } |
|
379 | ||
380 | if ($accessAnnotation) { |
|
381 | $fieldConfiguration['access'] = self::formatExpression($accessAnnotation->value); |