Code Duplication    Length = 10-10 lines in 2 locations

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
    ] + $this->buildCacheMetadata($definition);
50
  }
51
}
52

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

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