GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TestKernel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCacheDir() 0 3 1
A registerBundles() 0 6 1
A registerContainerConfiguration() 0 4 1
A getLogDir() 0 3 1
1
<?php
2
3
namespace Webfactory\ShortcodeBundle\Tests\Fixtures;
4
5
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
6
use Symfony\Bundle\TwigBundle\TwigBundle;
7
use Symfony\Component\Config\Loader\LoaderInterface;
8
use Symfony\Component\HttpKernel\Kernel;
9
use Webfactory\ShortcodeBundle\WebfactoryShortcodeBundle;
10
11
final class TestKernel extends Kernel
12
{
13
    public function registerBundles(): array
14
    {
15
        return [
16
            new FrameworkBundle(),
17
            new TwigBundle(),
18
            new WebfactoryShortcodeBundle(),
19
        ];
20
    }
21
22
    public function registerContainerConfiguration(LoaderInterface $loader)
23
    {
24
        $loader->load(__DIR__.'/config/config.yml');
25
        $loader->load(__DIR__.'/config/test_shortcodes.xml');
26
    }
27
28
    public function getCacheDir(): string
29
    {
30
        return __DIR__.'/cache/'.$this->environment;
31
    }
32
33
    public function getLogDir(): string
34
    {
35
        return __DIR__.'/logs';
36
    }
37
}
38