getContainerExtension()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 2
1
<?php
2
namespace Dkplus\CsrfApiUnprotectionBundle;
3
4
use Dkplus\CsrfApiUnprotectionBundle\DependencyInjection\Extension;
5
use Symfony\Component\HttpKernel\Bundle\Bundle;
6
7
class DkplusCsrfApiUnprotectionBundle extends Bundle
8
{
9 2
    public function getContainerExtension()
10
    {
11 2
        if (! $this->extension instanceof Extension) {
12 2
            $this->extension = new Extension();
13
        }
14 2
        return $this->extension;
15
    }
16
}
17