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

setRequestExecutorFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
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