ShortNameResolver::resolve()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace SilverLeague\IDEAnnotator\Reflection;
4
5
use phpDocumentor\Reflection\Fqsen;
6
use phpDocumentor\Reflection\FqsenResolver;
7
use phpDocumentor\Reflection\Types\Context;
8
9
class ShortNameResolver extends FqsenResolver
10
{
11
    public function resolve(string $fqsen, ?Context $context = null): Fqsen
12
    {
13
        if ($context === null) {
14
            $context = new Context('');
0 ignored issues
show
Unused Code introduced by
The assignment to $context is dead and can be removed.
Loading history...
15
        }
16
17
        return new Fqsen($fqsen);
18
    }
19
}
20