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

SymfonyFileLocator::fileExists()   A

Complexity

Conditions 6
Paths 6

Size

Total Lines 26
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 6.8395

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 26
rs 9.2222
ccs 10
cts 14
cp 0.7143
cc 6
nc 6
nop 1
crap 6.8395
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