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 (#213)
by Jérémiah
12:14
created

TestKernel::getLogDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\Functional\App;
4
5
use Overblog\GraphQLBundle\OverblogGraphQLBundle;
6
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
7
use Symfony\Bundle\SecurityBundle\SecurityBundle;
8
use Symfony\Bundle\TwigBundle\TwigBundle;
9
use Symfony\Component\Config\Loader\LoaderInterface;
10
use Symfony\Component\HttpKernel\Kernel;
11
12
final class TestKernel extends Kernel
13
{
14
    private $testCase;
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function registerBundles()
20
    {
21
        return [
22
            new FrameworkBundle(),
23
            new SecurityBundle(),
24
            new TwigBundle(),
25
            new OverblogGraphQLBundle(),
26
        ];
27
    }
28
29
    public function __construct($environment, $debug, $testCase = null)
30
    {
31
        $this->testCase = null !== $testCase ? $testCase : false;
32
        parent::__construct($environment, $debug);
33
    }
34
35
    public function getCacheDir()
36
    {
37
        return $this->basePath().'cache/'.$this->environment;
38
    }
39
40
    public function getLogDir()
41
    {
42
        return $this->basePath().'logs';
43
    }
44
45
    public function getRootDir()
46
    {
47
        return __DIR__;
48
    }
49
50
    public function isBooted()
51
    {
52
        return $this->booted;
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function registerContainerConfiguration(LoaderInterface $loader)
59
    {
60
        if ($this->testCase) {
61
            $loader->load(sprintf(__DIR__.'/config/%s/config.yml', $this->testCase));
62
        } else {
63
            $loader->load(__DIR__.'/config/config.yml');
64
        }
65
    }
66
67
    private function basePath()
68
    {
69
        return sys_get_temp_dir().'/OverblogGraphQLBundle/'.Kernel::VERSION.'/'.($this->testCase ? $this->testCase.'/' : '');
70
    }
71
}
72