Passed
Pull Request — master (#170)
by Christoffer
02:35 queued 24s
created

compareTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace Digia\GraphQL\Validation;
4
5
use Digia\GraphQL\GraphQL;
6
use Digia\GraphQL\Type\Definition\TypeInterface;
7
use Digia\GraphQL\Util\TypeHelper;
8
use Digia\GraphQL\Util\ValueHelper;
9
10
/**
11
 * @param array $argumentsA
12
 * @param array $argumentsB
13
 * @return bool
14
 */
15
function compareArguments(array $argumentsA, array $argumentsB): bool
16
{
17
    return GraphQL::make(ValueHelper::class)->compareArguments($argumentsA, $argumentsB);
18
}
19
20
/**
21
 * @param $valueA
22
 * @param $valueB
23
 * @return bool
24
 */
25
function compareValues($valueA, $valueB): bool
26
{
27
    return GraphQL::make(ValueHelper::class)->compareValues($valueA, $valueB);
28
}
29
30
/**
31
 * @param TypeInterface $typeA
32
 * @param TypeInterface $typeB
33
 * @return bool
34
 */
35
function compareTypes(TypeInterface $typeA, TypeInterface $typeB): bool
36
{
37
    return GraphQL::make(TypeHelper::class)->compareTypes($typeA, $typeB);
38
}
39