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   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 3
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A resolve() 0 14 3
unresolvableMessage() 0 1 ?
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