DkplusCsrfApiUnprotectionBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 7 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