ChainableKernelFileLocator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A supports() 0 4 2
1
<?php
2
3
/*
4
 * This file is part of the puli/symfony-bridge package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Puli\SymfonyBridge\HttpKernel;
13
14
use Puli\SymfonyBridge\Config\ChainableFileLocator;
15
use Symfony\Component\HttpKernel\Config\FileLocator;
16
17
/**
18
 * @since  1.0
19
 *
20
 * @author Bernhard Schussek <[email protected]>
21
 */
22
class ChainableKernelFileLocator extends FileLocator implements ChainableFileLocator
23
{
24 1
    public function supports($path)
25
    {
26 1
        return isset($path[0]) && '@' === $path[0];
27
    }
28
}
29