Code Duplication    Length = 7-7 lines in 2 locations

modules/graphql_core/src/Plugin/Deriver/Fields/EntityQueryDeriver.php 1 location

@@ 76-82 (lines=7) @@
73
          return $property instanceof BaseFieldDefinition && $property->isQueryable();
74
        });
75
76
        if (!empty($queryableProperties)) {
77
          $derivative['arguments']['filter'] = [
78
            'multi' => FALSE,
79
            'nullable' => TRUE,
80
            'type' => StringHelper::camelCase($id, 'query', 'filter', 'input'),
81
          ];
82
        }
83
84
        $this->derivatives[$id] = $derivative;
85
      }

modules/graphql_core/src/Plugin/Deriver/Fields/EntityReferenceReverseDeriver.php 1 location

@@ 108-114 (lines=7) @@
105
          return $property instanceof BaseFieldDefinition && $property->isQueryable();
106
        });
107
108
        if (!empty($queryableProperties)) {
109
          $derivative['arguments']['filter'] = [
110
            'multi' => FALSE,
111
            'nullable' => TRUE,
112
            'type' => StringHelper::camelCase($targetTypeId, 'query', 'filter', 'input'),
113
          ];
114
        }
115
116
        $this->derivatives["$entityTypeId-$fieldName"] = $derivative + $basePluginDefinition;
117
      }