KnpSnappyBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNamespace() 0 4 1
A getPath() 0 4 1
1
<?php
2
3
namespace Knp\Bundle\SnappyBundle;
4
5
use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle;
6
7
class KnpSnappyBundle extends BaseBundle
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getNamespace()
13
    {
14
        return __NAMESPACE__;
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getPath()
21
    {
22
        return strtr(__DIR__, '\\', '/');
23
    }
24
}
25