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
Push — master ( 5372ed...2e34c8 )
by Jérémiah
47s
created

CompileCacheWarmer::warmUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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