Kernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 8 2
1
<?php
2
3
namespace NW\JsonRequestBundle\Tests;
4
5
class Kernel
6
{
7
    /**
8
     * @var Fixtures\app\AppKernel
9
     */
10
    private static $instance;
11
12
    /**
13
     * @return Fixtures\app\AppKernel
14
     */
15
    public static function make()
16
    {
17
        if (null === static::$instance) {
0 ignored issues
show
Bug introduced by
Since $instance is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $instance to at least protected.
Loading history...
18
            static::$instance = new Fixtures\app\AppKernel('test', true);
19
            static::$instance->boot();
20
        }
21
22
        return static::$instance;
23
    }
24
}
25