Code Duplication    Length = 8-8 lines in 2 locations

src/GraphQL/Execution/QueryProcessor.php 2 locations

@@ 423-430 (lines=8) @@
420
   *
421
   * @return mixed
422
   */
423
  protected function resolveRootValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
424
    $root = $config->getRootValue();
425
    if (is_callable($root)) {
426
      $root = $root($params, $document, $operation);
427
    }
428
429
    return $root;
430
  }
431
432
  /**
433
   * @param \GraphQL\Server\ServerConfig $config
@@ 440-447 (lines=8) @@
437
   *
438
   * @return mixed
439
   */
440
  protected function resolveContextValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
441
    $context = $config->getContext();
442
    if (is_callable($context)) {
443
      $context = $context($params, $document, $operation);
444
    }
445
446
    return $context;
447
  }
448
449
  /**
450
   * @param \GraphQL\Server\ServerConfig $config