Code Duplication    Length = 9-9 lines in 3 locations

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

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

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

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

src/Plugin/GraphQL/Types/TypePluginBase.php 1 location

@@ 51-59 (lines=9) @@
48
  /**
49
   * {@inheritdoc}
50
   */
51
  public function getDefinition() {
52
    $definition = $this->getPluginDefinition();
53
54
    return [
55
      'name' => $definition['name'],
56
      'description' => $this->buildDescription($definition),
57
      'interfaces' => $this->buildInterfaces($definition),
58
    ];
59
  }
60
61
  /**
62
   * @param $definition