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 (#5)
by Jérémiah
07:11
created

AbstractSimpleResolver::resolve()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 9.4285
cc 3
eloc 8
nc 3
nop 1
crap 3
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Resolver;
13
14
abstract class AbstractSimpleResolver extends AbstractResolver
15
{
16
    /**
17
     * @param $alias
18
     *
19
     * @return mixed
20
     */
21 29
    public function resolve($alias)
22
    {
23 29
        if (null !== $solution = $this->cache->fetch($alias)) {
24 8
            return $solution;
25
        }
26 29
        $solution = $this->getSolution($alias);
27 29
        if (null === $solution) {
28 2
            throw new UnresolvableException($this->unresolvableMessage($alias));
29
        }
30
31 27
        $this->cache->save($alias, $solution);
32
33 27
        return $solution;
34
    }
35
36
    abstract protected function unresolvableMessage($alias);
37
}
38