Code Duplication    Length = 8-8 lines in 2 locations

src/GraphQL/Execution/QueryProcessor.php 2 locations

@@ 432-439 (lines=8) @@
429
   *
430
   * @return mixed
431
   */
432
  protected function resolveRootValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
433
    $root = $config->getRootValue();
434
    if (is_callable($root)) {
435
      $root = $root($params, $document, $operation);
436
    }
437
438
    return $root;
439
  }
440
441
  /**
442
   * @param \GraphQL\Server\ServerConfig $config
@@ 449-456 (lines=8) @@
446
   *
447
   * @return mixed
448
   */
449
  protected function resolveContextValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
450
    $context = $config->getContext();
451
    if (is_callable($context)) {
452
      $context = $context($params, $document, $operation);
453
    }
454
455
    return $context;
456
  }
457
458
  /**
459
   * @param \GraphQL\Server\ServerConfig $config