Completed
Pull Request — 8.x-3.x (#525)
by Sebastian
02:20
created

ComplexityCalculator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A calculate() 0 3 1
1
<?php
2
3
namespace Drupal\graphql\GraphQL\Visitors;
4
5
use GraphQL\Language\AST\OperationDefinition;
6
use GraphQL\Validator\ValidationContext;
7
8
class ComplexityCalculator {
9
10
  /**
11
   * {@inheritdoc}
12
   */
13
  public function calculate(OperationDefinition $definition, ValidationContext $context, \ArrayObject $variables, \ArrayObject $structure) {
0 ignored issues
show
Unused Code introduced by
The parameter $definition is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $context is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $variables is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $structure is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
14
    // TODO: Calculate complexity.
15
  }
16
}