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/Types/TypePluginBase.php 1 location

@@ 54-62 (lines=9) @@
51
  /**
52
   * {@inheritdoc}
53
   */
54
  public function getDefinition() {
55
    $definition = $this->getPluginDefinition();
56
57
    return [
58
      'name' => $definition['name'],
59
      'description' => $this->buildDescription($definition),
60
      'interfaces' => $this->buildInterfaces($definition),
61
    ];
62
  }
63
64
  /**
65
   * @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