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
Pull Request — master (#137)
by Jérémiah
05:56
created

ArrayCache   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fetch() 0 4 2
A save() 0 4 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\Cache;
13
14
class ArrayCache implements CacheInterface
15
{
16
    /**
17
     * @var array
18
     */
19
    private $cache = [];
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function fetch($key)
25
    {
26
        return isset($this->cache[$key]) ? $this->cache[$key] : null;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function save($key, $result)
33
    {
34
        $this->cache[$key] = $result;
35
    }
36
}
37