Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — master (#786)
by Timur
64:08 queued 62:37
created

NodeFieldQuery   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
A getAliases() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\GraphQL\Relay\Node;
6
7
use Closure;
8
use GraphQL\Type\Definition\ResolveInfo;
9
use Overblog\GraphQLBundle\Definition\ArgumentInterface;
10
use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface;
11
use Overblog\GraphQLBundle\Definition\Resolver\QueryInterface;
12
13
final class NodeFieldQuery implements QueryInterface, AliasedInterface
14
{
15
    /**
16
     * @param mixed $context
17
     *
18
     * @return mixed
19
     */
20
    public function __invoke(ArgumentInterface $args, $context, ResolveInfo $info, Closure $idFetcherCallback)
21
    {
22
        return $idFetcherCallback($args['id'], $context, $info);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public static function getAliases(): array
29
    {
30
        return ['__invoke' => 'relay_node_field'];
31
    }
32
}
33