Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 50-60 (lines=11) @@
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
      'contexts' => $this->buildCacheContexts($definition),
59
    ];
60
  }
61
62
  /**
63
   * {@inheritdoc}

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

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