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

DefaultFileLocator::getAllClassNames()   B

Complexity

Conditions 7
Paths 3

Size

Total Lines 29
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 7.0145

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 29
rs 8.8333
ccs 14
cts 15
cp 0.9333
cc 7
nc 3
nop 1
crap 7.0145
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\DefaultFileLocator::class, false)) {
12
    @trigger_error(sprintf(
13
        'The %s\DefaultFileLocator class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
14
        . ' Use \Doctrine\Persistence\Mapping\Driver\DefaultFileLocator instead.',
15
        __NAMESPACE__
16
    ), E_USER_DEPRECATED);
17
}
18
19 1
class_alias(
20 1
    \Doctrine\Persistence\Mapping\Driver\DefaultFileLocator::class,
21 1
    __NAMESPACE__ . '\DefaultFileLocator'
22
);
23
24 1
if (false) {
25
    /**
26
     * @deprecated 1.3 Use Doctrine\Persistence\Mapping\Driver\DefaultFileLocator
27
     */
28
    class DefaultFileLocator extends \Doctrine\Persistence\Mapping\Driver\DefaultFileLocator
29
    {
30
    }
31
}
32