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 (#234)
by Jérémiah
04:38
created

GeneratorCacheWarmer::isOptional()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Overblog\GraphQLBundle\CacheWarmer;
4
5
use Overblog\GraphQLBundle\Generator\TypeGenerator;
6
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
7
8
class GeneratorCacheWarmer implements CacheWarmerInterface
9
{
10
    /** @var TypeGenerator */
11
    private $typeGenerator;
12
13
    public function __construct(TypeGenerator $typeGenerator)
14
    {
15
        $this->typeGenerator = $typeGenerator;
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function isOptional()
22
    {
23
        return false;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function warmUp($cacheDir)
30
    {
31
        $this->typeGenerator->compile(TypeGenerator::MODE_WRITE | TypeGenerator::MODE_OVERRIDE);
32
    }
33
}
34