Code Duplication    Length = 5-5 lines in 2 locations

modules/graphql_core/src/Plugin/Deriver/EntityFieldDeriverBase.php 2 locations

@@ 108-112 (lines=5) @@
105
        continue;
106
      }
107
108
      foreach ($this->entityFieldManager->getBaseFieldDefinitions($entityTypeId) as $fieldDefinition) {
109
        if ($derivatives = $this->getDerivativeDefinitionsFromFieldDefinition($fieldDefinition, $basePluginDefinition)) {
110
          $this->derivatives = array_merge($this->derivatives, $derivatives);
111
        }
112
      }
113
114
      foreach ($this->entityBundleInfo->getBundleInfo($entityTypeId) as $bundleId => $bundleInfo) {
115
        foreach ($this->entityFieldManager->getFieldDefinitions($entityTypeId, $bundleId) as $fieldDefinition) {
@@ 115-119 (lines=5) @@
112
      }
113
114
      foreach ($this->entityBundleInfo->getBundleInfo($entityTypeId) as $bundleId => $bundleInfo) {
115
        foreach ($this->entityFieldManager->getFieldDefinitions($entityTypeId, $bundleId) as $fieldDefinition) {
116
          if ($derivatives = $this->getDerivativeDefinitionsFromFieldDefinition($fieldDefinition, $basePluginDefinition)) {
117
            $this->derivatives = array_merge($this->derivatives, $derivatives);
118
          }
119
        }
120
      }
121
    }
122