Code Duplication    Length = 13-13 lines in 2 locations

modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityById.php 1 location

@@ 79-91 (lines=13) @@
76
   * @param \Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer
77
   *   The entity buffer service.
78
   */
79
  public function __construct(
80
    array $configuration,
81
    $pluginId,
82
    $pluginDefinition,
83
    EntityTypeManagerInterface $entityTypeManager,
84
    EntityRepositoryInterface $entityRepository,
85
    EntityBuffer $entityBuffer
86
  ) {
87
    parent::__construct($configuration, $pluginId, $pluginDefinition);
88
    $this->entityBuffer = $entityBuffer;
89
    $this->entityTypeManager = $entityTypeManager;
90
    $this->entityRepository = $entityRepository;
91
  }
92
93
  /**
94
   * {@inheritdoc}

modules/graphql_core/src/Plugin/GraphQL/Fields/EntityQuery/EntityQueryEntities.php 1 location

@@ 86-98 (lines=13) @@
83
   * @param \Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer
84
   *   The entity buffer service.
85
   */
86
  public function __construct(
87
    array $configuration,
88
    $pluginId,
89
    $pluginDefinition,
90
    EntityTypeManagerInterface $entityTypeManager,
91
    EntityRepositoryInterface $entityRepository,
92
    EntityBuffer $entityBuffer
93
  ) {
94
    parent::__construct($configuration, $pluginId, $pluginDefinition);
95
    $this->entityTypeManager = $entityTypeManager;
96
    $this->entityRepository = $entityRepository;
97
    $this->entityBuffer = $entityBuffer;
98
  }
99
100
  /**
101
   * {@inheritdoc}