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 (#137)
by Jérémiah
06:26
created

ArrayCache::fetch()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

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