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

Completed
Pull Request — master (#264)
by Jérémiah
12:16
created

Executor::execute()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2.0116

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 6
cts 7
cp 0.8571
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 8
nc 2
nop 6
crap 2.0116
1
<?php
2
3
namespace Overblog\GraphQLBundle\Executor;
4
5
use GraphQL\Executor\Promise\PromiseAdapter;
6
use GraphQL\GraphQL;
7
use GraphQL\Type\Schema;
8
9
class Executor implements ExecutorInterface
10
{
11
    /** @var PromiseAdapter */
12
    private $promiseAdapter;
13
14
    /**
15
     * {@inheritdoc}
16
     */
17 59
    public function execute(Schema $schema, $requestString, $rootValue = null, $contextValue = null, $variableValues = null, $operationName = null)
18
    {
19 59
        $args = func_get_args();
20
21 59
        if (null === $this->promiseAdapter) {
22
            $method = 'executeQuery';
23
        } else {
24 59
            array_unshift($args, $this->promiseAdapter);
25 59
            $method = 'promiseToExecute';
26
        }
27
28 59
        return call_user_func_array(sprintf('\%s::%s', GraphQL::class, $method), $args);
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 61
    public function setPromiseAdapter(PromiseAdapter $promiseAdapter = null)
35
    {
36 61
        $this->promiseAdapter = $promiseAdapter;
37 61
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42 59
    public function setDefaultFieldResolver(callable $fn)
43
    {
44 59
        call_user_func_array(sprintf('\%s::setDefaultFieldResolver', GraphQL::class), func_get_args());
45 59
    }
46
}
47