Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
20 | 2 | public function process(Node $parent, Name $name, ClassDependencies $classDependencies): ?Fqn |
|
21 | { |
||
22 | // FQN is already imported (use statement) |
||
23 | 2 | if ($classDependencies->hasImportedFqn(Fqn::createFromParts($name->parts))) { |
|
24 | return null; |
||
25 | } |
||
26 | |||
27 | 2 | return Fqn::createFromParts($name->parts); |
|
28 | } |
||
30 |