Code Duplication    Length = 8-8 lines in 2 locations

src/GraphQL/Execution/QueryProcessor.php 2 locations

@@ 418-425 (lines=8) @@
415
   *
416
   * @return mixed
417
   */
418
  protected function resolveRootValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
419
    $root = $config->getRootValue();
420
    if (is_callable($root)) {
421
      $root = $root($params, $document, $operation);
422
    }
423
424
    return $root;
425
  }
426
427
  /**
428
   * @param \GraphQL\Server\ServerConfig $config
@@ 435-442 (lines=8) @@
432
   *
433
   * @return mixed
434
   */
435
  protected function resolveContextValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
436
    $context = $config->getContext();
437
    if (is_callable($context)) {
438
      $context = $context($params, $document, $operation);
439
    }
440
441
    return $context;
442
  }
443
444
  /**
445
   * @param \GraphQL\Server\ServerConfig $config