Code Duplication    Length = 10-10 lines in 2 locations

src/Plugin/GraphQL/Fields/FieldPluginBase.php 1 location

@@ 47-56 (lines=10) @@
44
  /**
45
   * {@inheritdoc}
46
   */
47
  public function getDefinition() {
48
    $definition = $this->getPluginDefinition();
49
50
    return [
51
      'type' => $this->buildType($definition),
52
      'description' => $this->buildDescription($definition),
53
      'args' => $this->buildArguments($definition),
54
      'deprecationReason' => $this->buildDeprecationReason($definition),
55
    ];
56
  }
57
58
  /**
59
   * {@inheritdoc}

src/Plugin/GraphQL/Mutations/MutationPluginBase.php 1 location

@@ 41-50 (lines=10) @@
38
  /**
39
   * {@inheritdoc}
40
   */
41
  public function getDefinition() {
42
    $definition = $this->getPluginDefinition();
43
44
    return [
45
      'type' => $this->buildType($definition),
46
      'description' => $this->buildDescription($definition),
47
      'args' => $this->buildArguments($definition),
48
      'deprecationReason' => $this->buildDeprecationReason($definition),
49
    ];
50
  }
51
52
}
53