Code Duplication    Length = 9-9 lines in 3 locations

src/Plugin/GraphQL/Enums/EnumPluginBase.php 1 location

@@ 31-39 (lines=9) @@
28
  /**
29
   * {@inheritdoc}
30
   */
31
  public function getDefinition() {
32
    $definition = $this->getPluginDefinition();
33
34
    return [
35
      'name' => $definition['name'],
36
      'description' => $this->buildDescription($definition),
37
      'values' => $this->buildEnumValues($definition),
38
    ];
39
  }
40
41
  /**
42
   * @param $definition

src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location

@@ 36-44 (lines=9) @@
33
  /**
34
   * {@inheritdoc}
35
   */
36
  public function getDefinition() {
37
    $definition = $this->getPluginDefinition();
38
39
    return [
40
      'name' => $definition['name'],
41
      'description' => $this->buildDescription($definition),
42
      'fields' => $this->buildFields($definition),
43
    ];
44
  }
45
46
  /**
47
   * @param $definition

src/Plugin/GraphQL/Unions/UnionTypePluginBase.php 1 location

@@ 43-51 (lines=9) @@
40
  /**
41
   * {@inheritdoc}
42
   */
43
  public function getDefinition() {
44
    $definition = $this->getPluginDefinition();
45
46
    return [
47
      'name' => $definition['name'],
48
      'description' => $this->buildDescription($definition),
49
      'types' => $this->buildTypes($definition),
50
    ];
51
  }
52
53
  /**
54
   * @param $definition