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
Push — master ( d005cb...a79a7e )
by Jérémiah
54s
created

getRequestExecutor()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 4
nc 2
nop 0
crap 3
1
<?php
2
3
namespace Overblog\GraphQLBundle\Command;
4
5
use Overblog\GraphQLBundle\Request\Executor as RequestExecutor;
6
7
trait RequestExecutorLazyLoaderTrait
8
{
9
    /** @var RequestExecutor */
10
    private $requestExecutor;
11
12
    /** @var array */
13
    private $requestExecutorFactory;
14
15 7
    public function setRequestExecutorFactory(array $requestExecutorFactory)
16
    {
17 7
        $this->requestExecutorFactory = $requestExecutorFactory;
18 7
    }
19
20
    /**
21
     * @return RequestExecutor
22
     */
23 5
    protected function getRequestExecutor()
24
    {
25 5
        if (null === $this->requestExecutor && null !== $this->requestExecutorFactory) {
26 5
            $this->requestExecutor = call_user_func_array(...$this->requestExecutorFactory);
27
        }
28
29 5
        return $this->requestExecutor;
30
    }
31
}
32