Failed Conditions
Pull Request — 1.3.x (#71)
by Grégoire
02:19
created

SymfonyFileLocator::getAllClassNames()   B

Complexity

Conditions 8
Paths 3

Size

Total Lines 40
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 20
CRAP Score 8.0069

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 21
c 1
b 0
f 0
dl 0
loc 40
rs 8.4444
ccs 20
cts 21
cp 0.9524
cc 8
nc 3
nop 1
crap 8.0069
1
<?php
2
3
namespace Doctrine\Common\Persistence\Mapping\Driver;
4
5
use const E_USER_DEPRECATED;
6
use function class_alias;
7
use function class_exists;
8
use function sprintf;
9
use function trigger_error;
10
11 1
if (! class_exists(\Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator::class, false)) {
12
    @trigger_error(sprintf(
13
        'The %s\SymfonyFileLocator class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14
        . ' Use \Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator instead.',
15
        __NAMESPACE__
16
    ), E_USER_DEPRECATED);
17
}
18
19 1
class_alias(
20 1
    \Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator::class,
21 1
    __NAMESPACE__ . '\SymfonyFileLocator'
22
);
23
24 1
if (false) {
25
    /**
26
     * @deprecated 1.3 Use Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator
27
     */
28
    class SymfonyFileLocator extends \Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator
29
    {
30
    }
31
}
32