Lines 50-55
Link Here
|
50 |
import org.netbeans.modules.csl.api.OffsetRange; |
50 |
import org.netbeans.modules.csl.api.OffsetRange; |
51 |
import org.netbeans.modules.php.editor.model.FileScope; |
51 |
import org.netbeans.modules.php.editor.model.FileScope; |
52 |
import org.netbeans.modules.php.editor.model.FunctionScope; |
52 |
import org.netbeans.modules.php.editor.model.FunctionScope; |
|
|
53 |
import org.netbeans.modules.php.editor.model.MethodScope; |
53 |
import org.netbeans.modules.php.editor.model.ModelUtils; |
54 |
import org.netbeans.modules.php.editor.model.ModelUtils; |
54 |
import org.netbeans.modules.php.editor.model.TypeScope; |
55 |
import org.netbeans.modules.php.editor.model.TypeScope; |
55 |
import org.netbeans.modules.php.editor.parser.PHPParseResult; |
56 |
import org.netbeans.modules.php.editor.parser.PHPParseResult; |
Lines 128-133
Link Here
|
128 |
private void checkDeclaredFunctions(Collection<? extends FunctionScope> declaredFunctions) { |
129 |
private void checkDeclaredFunctions(Collection<? extends FunctionScope> declaredFunctions) { |
129 |
Set<String> declaredMethodNames = new HashSet<>(); |
130 |
Set<String> declaredMethodNames = new HashSet<>(); |
130 |
for (FunctionScope functionScope : declaredFunctions) { |
131 |
for (FunctionScope functionScope : declaredFunctions) { |
|
|
132 |
if (functionScope instanceof MethodScope) { |
133 |
MethodScope methodScope = (MethodScope) functionScope; |
134 |
if (methodScope.isMagic()) { |
135 |
continue; |
136 |
} |
137 |
} |
131 |
if (!isInConditionStatament(functionScope)) { |
138 |
if (!isInConditionStatament(functionScope)) { |
132 |
String fullyQualifiedFunctionName = functionScope.getFullyQualifiedName().toString(); |
139 |
String fullyQualifiedFunctionName = functionScope.getFullyQualifiedName().toString(); |
133 |
if (declaredMethodNames.contains(fullyQualifiedFunctionName)) { |
140 |
if (declaredMethodNames.contains(fullyQualifiedFunctionName)) { |