test_class.declarator: parser = PHPParserBuilder.createParser(PHPLexicalGrammar.TOP_STATEMENT)
test_class.modifier: private
test_class.original_string: private ActionParser<Tree> parser = PHPParserBuilder.createParser(PHPLexicalGrammar.TOP_STATEMENT);
test_class.type: ActionParser<Tree>
test_class.var_name: parser
test_class.file: php-checks/src/test/java/org/sonar/php/checks/utils/CheckUtilsTest.java
test_class.identifier: CheckUtilsTest
test_case.body: @Test
    public void is_string_literal_with_value() throws Exception {
      assertThat(createLiterals(Tree.Kind.REGULAR_STRING_LITERAL, "\"foo\"", "\"Foo\"", "\"FOO\"")
        .allMatch(literalTree -> isStringLiteralWithValue(literalTree, "foo"))).isTrue();
  
      assertThat(createLiterals(Tree.Kind.REGULAR_STRING_LITERAL, "\"foo\"")
        .allMatch(literalTree -> isStringLiteralWithValue(literalTree, "bar"))).isFalse();
  
      assertThat(createLiterals(Tree.Kind.BOOLEAN_LITERAL, "true")
        .allMatch(literalTree -> isStringLiteralWithValue(literalTree, "bar"))).isFalse();
  
      assertThat(isStringLiteralWithValue(null, "foo")).isFalse();
    }
test_case.class_method_signature: CheckUtilsTest.is_string_literal_with_value()
test_case.full_signature: @Test public void is_string_literal_with_value()
test_case.identifier: is_string_literal_with_value
test_case.invocations: isTrue assertThat allMatch createLiterals isStringLiteralWithValue isFalse assertThat allMatch createLiterals isStringLiteralWithValue isFalse assertThat allMatch createLiterals isStringLiteralWithValue isFalse assertThat isStringLiteralWithValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void is_string_literal_with_value()
focal_class.declarator: FUNCTION_KINDS_ARRAY = {
      Kind.METHOD_DECLARATION,
      Kind.FUNCTION_DECLARATION,
      Kind.FUNCTION_EXPRESSION,
      Kind.ARROW_FUNCTION_EXPRESSION}
focal_class.modifier: private static final
focal_class.original_string: private static final Kind[] FUNCTION_KINDS_ARRAY = {
      Kind.METHOD_DECLARATION,
      Kind.FUNCTION_DECLARATION,
      Kind.FUNCTION_EXPRESSION,
      Kind.ARROW_FUNCTION_EXPRESSION};
focal_class.type: Kind[]
focal_class.var_name: FUNCTION_KINDS_ARRAY
focal_class.declarator: FUNCTION_KINDS = ImmutableList.copyOf(FUNCTION_KINDS_ARRAY)
focal_class.modifier: public static final
focal_class.original_string: public static final ImmutableList<Kind> FUNCTION_KINDS = ImmutableList.copyOf(FUNCTION_KINDS_ARRAY);
focal_class.type: ImmutableList<Kind>
focal_class.var_name: FUNCTION_KINDS
focal_class.declarator: SUPERGLOBALS_BY_OLD_NAME = ImmutableMap.<String, String>builder()
      .put("$HTTP_SERVER_VARS", "$_SERVER")
      .put("$HTTP_GET_VARS", "$_GET")
      .put("$HTTP_POST_VARS", "$_POST")
      .put("$HTTP_POST_FILES", "$_FILES")
      .put("$HTTP_SESSION_VARS", "$_SESSION")
      .put("$HTTP_ENV_VARS", "$_ENV")
      .put("$HTTP_COOKIE_VARS", "$_COOKIE").build()
focal_class.modifier: public static final
focal_class.original_string: public static final ImmutableMap<String, String> SUPERGLOBALS_BY_OLD_NAME = ImmutableMap.<String, String>builder()
      .put("$HTTP_SERVER_VARS", "$_SERVER")
      .put("$HTTP_GET_VARS", "$_GET")
      .put("$HTTP_POST_VARS", "$_POST")
      .put("$HTTP_POST_FILES", "$_FILES")
      .put("$HTTP_SESSION_VARS", "$_SESSION")
      .put("$HTTP_ENV_VARS", "$_ENV")
      .put("$HTTP_COOKIE_VARS", "$_COOKIE").build();
focal_class.type: ImmutableMap<String, String>
focal_class.var_name: SUPERGLOBALS_BY_OLD_NAME
focal_class.declarator: SUPERGLOBALS = ImmutableSet.of(
        "$GLOBALS", "$_SERVER", "$_GET", "$_POST", "$_FILES", "$_COOKIE", "$_SESSION", "$_REQUEST", "$_ENV")
focal_class.modifier: public static final
focal_class.original_string: public static final ImmutableSet<String> SUPERGLOBALS = ImmutableSet.of(
        "$GLOBALS", "$_SERVER", "$_GET", "$_POST", "$_FILES", "$_COOKIE", "$_SESSION", "$_REQUEST", "$_ENV");
focal_class.type: ImmutableSet<String>
focal_class.var_name: SUPERGLOBALS
focal_class.file: php-checks/src/main/java/org/sonar/php/checks/utils/CheckUtils.java
focal_class.identifier: CheckUtils
focal_class.class_method_signature: CheckUtils.CheckUtils()
focal_class.full_signature: private  CheckUtils()
focal_class.identifier: CheckUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  CheckUtils()
focal_class.class_method_signature: CheckUtils.isFunction(Tree tree)
focal_class.full_signature: public static boolean isFunction(Tree tree)
focal_class.identifier: isFunction
focal_class.modifiers: public static
focal_class.parameters: (Tree tree)
focal_class.return: boolean
focal_class.signature: boolean isFunction(Tree tree)
focal_class.class_method_signature: CheckUtils.getFunctionName(FunctionTree functionDec)
focal_class.full_signature: public static String getFunctionName(FunctionTree functionDec)
focal_class.identifier: getFunctionName
focal_class.modifiers: public static
focal_class.parameters: (FunctionTree functionDec)
focal_class.return: String
focal_class.signature: String getFunctionName(FunctionTree functionDec)
focal_class.class_method_signature: CheckUtils.getFunctionName(FunctionCallTree functionCall)
focal_class.full_signature: @Nullable public static String getFunctionName(FunctionCallTree functionCall)
focal_class.identifier: getFunctionName
focal_class.modifiers: @Nullable public static
focal_class.parameters: (FunctionCallTree functionCall)
focal_class.return: String
focal_class.signature: String getFunctionName(FunctionCallTree functionCall)
focal_class.class_method_signature: CheckUtils.getLowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.full_signature: @Nullable public static String getLowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.identifier: getLowerCaseFunctionName
focal_class.modifiers: @Nullable public static
focal_class.parameters: (FunctionCallTree functionCall)
focal_class.return: String
focal_class.signature: String getLowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.class_method_signature: CheckUtils.functionName(FunctionCallTree functionCall)
focal_class.full_signature: @Nullable public static String functionName(FunctionCallTree functionCall)
focal_class.identifier: functionName
focal_class.modifiers: @Nullable public static
focal_class.parameters: (FunctionCallTree functionCall)
focal_class.return: String
focal_class.signature: String functionName(FunctionCallTree functionCall)
focal_class.class_method_signature: CheckUtils.lowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.full_signature: @Nullable public static String lowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.identifier: lowerCaseFunctionName
focal_class.modifiers: @Nullable public static
focal_class.parameters: (FunctionCallTree functionCall)
focal_class.return: String
focal_class.signature: String lowerCaseFunctionName(FunctionCallTree functionCall)
focal_class.class_method_signature: CheckUtils.lowerCaseSet(String... names)
focal_class.full_signature: public static Set<String> lowerCaseSet(String... names)
focal_class.identifier: lowerCaseSet
focal_class.modifiers: public static
focal_class.parameters: (String... names)
focal_class.return: Set<String>
focal_class.signature: Set<String> lowerCaseSet(String... names)
focal_class.class_method_signature: CheckUtils.getClassName(ClassDeclarationTree classDeclaration)
focal_class.full_signature: public static String getClassName(ClassDeclarationTree classDeclaration)
focal_class.identifier: getClassName
focal_class.modifiers: public static
focal_class.parameters: (ClassDeclarationTree classDeclaration)
focal_class.return: String
focal_class.signature: String getClassName(ClassDeclarationTree classDeclaration)
focal_class.class_method_signature: CheckUtils.getLowerCaseClassName(ClassDeclarationTree classDeclarationTree)
focal_class.full_signature: public static String getLowerCaseClassName(ClassDeclarationTree classDeclarationTree)
focal_class.identifier: getLowerCaseClassName
focal_class.modifiers: public static
focal_class.parameters: (ClassDeclarationTree classDeclarationTree)
focal_class.return: String
focal_class.signature: String getLowerCaseClassName(ClassDeclarationTree classDeclarationTree)
focal_class.class_method_signature: CheckUtils.nameOf(Tree tree)
focal_class.full_signature: @Nullable public static String nameOf(Tree tree)
focal_class.identifier: nameOf
focal_class.modifiers: @Nullable public static
focal_class.parameters: (Tree tree)
focal_class.return: String
focal_class.signature: String nameOf(Tree tree)
focal_class.class_method_signature: CheckUtils.isOverriding(MethodDeclarationTree declaration)
focal_class.full_signature: public static boolean isOverriding(MethodDeclarationTree declaration)
focal_class.identifier: isOverriding
focal_class.modifiers: public static
focal_class.parameters: (MethodDeclarationTree declaration)
focal_class.return: boolean
focal_class.signature: boolean isOverriding(MethodDeclarationTree declaration)
focal_class.class_method_signature: CheckUtils.isExitExpression(FunctionCallTree functionCallTree)
focal_class.full_signature: public static boolean isExitExpression(FunctionCallTree functionCallTree)
focal_class.identifier: isExitExpression
focal_class.modifiers: public static
focal_class.parameters: (FunctionCallTree functionCallTree)
focal_class.return: boolean
focal_class.signature: boolean isExitExpression(FunctionCallTree functionCallTree)
focal_class.class_method_signature: CheckUtils.hasModifier(ClassMemberTree tree, String toFind)
focal_class.full_signature: public static boolean hasModifier(ClassMemberTree tree, String toFind)
focal_class.identifier: hasModifier
focal_class.modifiers: public static
focal_class.parameters: (ClassMemberTree tree, String toFind)
focal_class.return: boolean
focal_class.signature: boolean hasModifier(ClassMemberTree tree, String toFind)
focal_class.class_method_signature: CheckUtils.hasModifier(List<SyntaxToken> modifiers, String toFind)
focal_class.full_signature: public static boolean hasModifier(List<SyntaxToken> modifiers, String toFind)
focal_class.identifier: hasModifier
focal_class.modifiers: public static
focal_class.parameters: (List<SyntaxToken> modifiers, String toFind)
focal_class.return: boolean
focal_class.signature: boolean hasModifier(List<SyntaxToken> modifiers, String toFind)
focal_class.class_method_signature: CheckUtils.isClosingTag(SyntaxToken token)
focal_class.full_signature: public static boolean isClosingTag(SyntaxToken token)
focal_class.identifier: isClosingTag
focal_class.modifiers: public static
focal_class.parameters: (SyntaxToken token)
focal_class.return: boolean
focal_class.signature: boolean isClosingTag(SyntaxToken token)
focal_class.class_method_signature: CheckUtils.isClosingTag(Tree tree)
focal_class.full_signature: public static boolean isClosingTag(Tree tree)
focal_class.identifier: isClosingTag
focal_class.modifiers: public static
focal_class.parameters: (Tree tree)
focal_class.return: boolean
focal_class.signature: boolean isClosingTag(Tree tree)
focal_class.class_method_signature: CheckUtils.lines(PhpFile file)
focal_class.full_signature: public static Stream<String> lines(PhpFile file)
focal_class.identifier: lines
focal_class.modifiers: public static
focal_class.parameters: (PhpFile file)
focal_class.return: Stream<String>
focal_class.signature: Stream<String> lines(PhpFile file)
focal_class.class_method_signature: CheckUtils.skipParenthesis(ExpressionTree expr)
focal_class.full_signature: public static ExpressionTree skipParenthesis(ExpressionTree expr)
focal_class.identifier: skipParenthesis
focal_class.modifiers: public static
focal_class.parameters: (ExpressionTree expr)
focal_class.return: ExpressionTree
focal_class.signature: ExpressionTree skipParenthesis(ExpressionTree expr)
focal_class.class_method_signature: CheckUtils.getForCondition(ForStatementTree tree)
focal_class.full_signature: @Nullable public static ExpressionTree getForCondition(ForStatementTree tree)
focal_class.identifier: getForCondition
focal_class.modifiers: @Nullable public static
focal_class.parameters: (ForStatementTree tree)
focal_class.return: ExpressionTree
focal_class.signature: ExpressionTree getForCondition(ForStatementTree tree)
focal_class.class_method_signature: CheckUtils.trimQuotes(String value)
focal_class.full_signature: public static String trimQuotes(String value)
focal_class.identifier: trimQuotes
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String trimQuotes(String value)
focal_class.class_method_signature: CheckUtils.trimQuotes(LiteralTree literalTree)
focal_class.full_signature: public static String trimQuotes(LiteralTree literalTree)
focal_class.identifier: trimQuotes
focal_class.modifiers: public static
focal_class.parameters: (LiteralTree literalTree)
focal_class.return: String
focal_class.signature: String trimQuotes(LiteralTree literalTree)
focal_class.class_method_signature: CheckUtils.isFalseValue(ExpressionTree tree)
focal_class.full_signature: public static boolean isFalseValue(ExpressionTree tree)
focal_class.identifier: isFalseValue
focal_class.modifiers: public static
focal_class.parameters: (ExpressionTree tree)
focal_class.return: boolean
focal_class.signature: boolean isFalseValue(ExpressionTree tree)
focal_class.class_method_signature: CheckUtils.isTrueValue(ExpressionTree tree)
focal_class.full_signature: public static boolean isTrueValue(ExpressionTree tree)
focal_class.identifier: isTrueValue
focal_class.modifiers: public static
focal_class.parameters: (ExpressionTree tree)
focal_class.return: boolean
focal_class.signature: boolean isTrueValue(ExpressionTree tree)
focal_class.class_method_signature: CheckUtils.isStringLiteralWithValue(@Nullable Tree tree, String s)
focal_class.full_signature: public static boolean isStringLiteralWithValue(@Nullable Tree tree, String s)
focal_class.identifier: isStringLiteralWithValue
focal_class.modifiers: public static
focal_class.parameters: (@Nullable Tree tree, String s)
focal_class.return: boolean
focal_class.signature: boolean isStringLiteralWithValue(@Nullable Tree tree, String s)
focal_class.class_method_signature: CheckUtils.isNullOrEmptyString(ExpressionTree tree)
focal_class.full_signature: public static boolean isNullOrEmptyString(ExpressionTree tree)
focal_class.identifier: isNullOrEmptyString
focal_class.modifiers: public static
focal_class.parameters: (ExpressionTree tree)
focal_class.return: boolean
focal_class.signature: boolean isNullOrEmptyString(ExpressionTree tree)
focal_class.class_method_signature: CheckUtils.hasAnnotation(Tree declaration, String annotation)
focal_class.full_signature: public static boolean hasAnnotation(Tree declaration, String annotation)
focal_class.identifier: hasAnnotation
focal_class.modifiers: public static
focal_class.parameters: (Tree declaration, String annotation)
focal_class.return: boolean
focal_class.signature: boolean hasAnnotation(Tree declaration, String annotation)
focal_class.class_method_signature: CheckUtils.isPublic(ClassMemberTree tree)
focal_class.full_signature: public static boolean isPublic(ClassMemberTree tree)
focal_class.identifier: isPublic
focal_class.modifiers: public static
focal_class.parameters: (ClassMemberTree tree)
focal_class.return: boolean
focal_class.signature: boolean isPublic(ClassMemberTree tree)
focal_class.class_method_signature: CheckUtils.isAbstract(ClassDeclarationTree tree)
focal_class.full_signature: public static boolean isAbstract(ClassDeclarationTree tree)
focal_class.identifier: isAbstract
focal_class.modifiers: public static
focal_class.parameters: (ClassDeclarationTree tree)
focal_class.return: boolean
focal_class.signature: boolean isAbstract(ClassDeclarationTree tree)
focal_method.body: public static boolean isStringLiteralWithValue(@Nullable Tree tree, String s) {
      return tree != null && tree.is(Kind.REGULAR_STRING_LITERAL) && s.equalsIgnoreCase(trimQuotes((LiteralTree) tree));
    }
focal_method.class_method_signature: CheckUtils.isStringLiteralWithValue(@Nullable Tree tree, String s)
focal_method.full_signature: public static boolean isStringLiteralWithValue(@Nullable Tree tree, String s)
focal_method.identifier: isStringLiteralWithValue
focal_method.invocations: is equalsIgnoreCase trimQuotes
focal_method.modifiers: public static
focal_method.parameters: (@Nullable Tree tree, String s)
focal_method.return: boolean
focal_method.signature: boolean isStringLiteralWithValue(@Nullable Tree tree, String s)