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.
Completed
Pull Request — master (#391)
by
unknown
31:20
created

WithoutDoctrineKernel::addBundle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 6
loc 6
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
4
namespace Hautelook\AliceBundle\Functional;
5
6
use Hautelook\AliceBundle\HautelookAliceBundle;
7
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
use Symfony\Component\HttpKernel\Kernel;
11
12
/**
13
 * @package Hautelook\AliceBundle\Functional
14
 * @author Dennis Langen <[email protected]>
15
 */
16 View Code Duplication
class WithoutDoctrineKernel extends Kernel
17
{
18
19
    private $addedBundles = [];
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function registerBundles()
25
    {
26
        return array_merge(
27
            [
28
                new FrameworkBundle(),
29
                new HautelookAliceBundle(),
30
            ],
31
            $this->addedBundles
32
        );
33
    }
34
35
    public function addBundle(Bundle $bundle): self
36
    {
37
        $this->addedBundles[] = $bundle;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @inheritdoc
44
     */
45
    public function registerContainerConfiguration(LoaderInterface $loader)
46
    {
47
        $loader->load(__DIR__.'/config/config_without_doctrine.yml');
48
    }
49
}
50