Remove dead if block
parent
d3d7f7dafe
commit
9ad3c5aef6
|
@ -268,9 +268,8 @@ class CompletionProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$isNotFullyQualified && ($fqnStartsWithPrefix || strStartsWith($fqn, $namespacePrefix . "\\" . $prefix))) {
|
$isFullyQualifiedAndPrefixMatches = !$isNotFullyQualified && ($fqnStartsWithPrefix || strStartsWith($fqn, $namespacePrefix . "\\" . $prefix));
|
||||||
// $fqn = $fqn;
|
if (!$isFullyQualifiedAndPrefixMatches && !$isAliased && !array_search($fqn, array_values($namespaceImportTable))) {
|
||||||
} elseif (!$isAliased && !array_search($fqn, array_values($namespaceImportTable))) {
|
|
||||||
if (empty($prefix)) {
|
if (empty($prefix)) {
|
||||||
$fqn = '\\' . $fqn;
|
$fqn = '\\' . $fqn;
|
||||||
} elseif (strStartsWith($fqn, $namespacePrefix . "\\" . $prefix)) {
|
} elseif (strStartsWith($fqn, $namespacePrefix . "\\" . $prefix)) {
|
||||||
|
@ -278,7 +277,7 @@ class CompletionProvider
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} elseif (!$isAliased) {
|
} elseif (!$isFullyQualifiedAndPrefixMatches && !$isAliased) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} elseif ($fqnStartsWithPrefix && $class instanceof Node\QualifiedName && $class->isFullyQualifiedName()) {
|
} elseif ($fqnStartsWithPrefix && $class instanceof Node\QualifiedName && $class->isFullyQualifiedName()) {
|
||||||
|
|
Loading…
Reference in New Issue