switch(problemId){
case IProblem.PHPVarDeprecatedWarning :
return this.options.getSeverity(CompilerOptions.PHPVarDeprecatedWarning);
-
+ case IProblem.PHPBadStyleKeywordWarning :
+ return this.options.getSeverity(CompilerOptions.PHPBadStyleKeywordWarning);
+ case IProblem.PHPBadStyleUppercaseIdentifierWarning :
+ return this.options.getSeverity(CompilerOptions.PHPBadStyleUppercaseIdentifierWarning);
+
case IProblem.MaskedCatch :
return this.options.getSeverity(CompilerOptions.MaskedCatchBlock);
this.handle(IProblem.PHPVarDeprecatedWarning, NoArgument, new String[]{},
problemStartPosition, problemEndPosition, context, compilationResult);
}
+
+ public void phpKeywordWarning(String[] messageArguments,
+ int problemStartPosition, int problemEndPosition,
+ ReferenceContext context, CompilationResult compilationResult) {
+ if (computeSeverity(IProblem.PHPBadStyleKeywordWarning) == Ignore)
+ return;
+ this.handle(IProblem.PHPBadStyleKeywordWarning, NoArgument, messageArguments,
+ problemStartPosition, problemEndPosition, context, compilationResult);
+ }
+
+ public void phpUppercaseIdentifierWarning(
+ int problemStartPosition, int problemEndPosition,
+ ReferenceContext context, CompilationResult compilationResult) {
+ if (computeSeverity(IProblem.PHPBadStyleUppercaseIdentifierWarning) == Ignore)
+ return;
+ this.handle(IProblem.PHPBadStyleUppercaseIdentifierWarning, NoArgument, new String[]{},
+ problemStartPosition, problemEndPosition, context, compilationResult);
+ }
}