Code Duplication    Length = 8-8 lines in 2 locations

src/GraphQL/Execution/QueryProcessor.php 2 locations

@@ 285-292 (lines=8) @@
282
   *
283
   * @return mixed
284
   */
285
  protected function resolveRootValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
286
    $root = $config->getRootValue();
287
    if (is_callable($root)) {
288
      $root = $root($params, $document, $operation);
289
    }
290
291
    return $root;
292
  }
293
294
  /**
295
   * @param \GraphQL\Server\ServerConfig $config
@@ 302-309 (lines=8) @@
299
   *
300
   * @return mixed
301
   */
302
  protected function resolveContextValue(ServerConfig $config, OperationParams $params, DocumentNode $document, $operation) {
303
    $context = $config->getContext();
304
    if (is_callable($context)) {
305
      $context = $context($params, $document, $operation);
306
    }
307
308
    return $context;
309
  }
310
311
  /**
312
   * @param \GraphQL\Server\ServerConfig $config