Test Failed
Push — master ( 2530ac...3f2955 )
by Vincent
10:10 queued 07:25
created

TestKernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 20
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 5 1
A configureContainer() 0 3 1
A configureRoutes() 0 2 1
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\DependencyInjection\ContainerBuilder;
5
use Symfony\Component\Routing\RouteCollectionBuilder;
6
7
class TestKernel extends \Symfony\Component\HttpKernel\Kernel
8
{
9
    use \Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
0 ignored issues
show
Bug introduced by
The trait Symfony\Bundle\Framework...Kernel\MicroKernelTrait requires the property $instanceof which is not provided by TestKernel.
Loading history...
10
11
    public function registerBundles()
12
    {
13
        return [
14
            new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
15
            new \Bdf\QueueBundle\BdfQueueBundle(),
16
        ];
17
    }
18
19
    protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
0 ignored issues
show
Unused Code introduced by
The parameter $c is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

19
    protected function configureContainer(/** @scrutinizer ignore-unused */ ContainerBuilder $c, LoaderInterface $loader)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        $loader->load(__DIR__.'/Fixtures/conf.yaml');
22
    }
23
24
    // PHP 7.1
25
    protected function configureRoutes(RouteCollectionBuilder $routes)
0 ignored issues
show
Unused Code introduced by
The parameter $routes is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    protected function configureRoutes(/** @scrutinizer ignore-unused */ RouteCollectionBuilder $routes)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
    }
28
}
29