test_class.file: sonar-php-plugin/src/test/java/org/sonar/plugins/php/api/PhpTest.java
test_class.identifier: PhpTest
test_case.body: @Test
    public void shouldCheckCustomValidPhpExtensions() {
      MapSettings settings = new MapSettings();
      settings.setProperty(PhpPlugin.FILE_SUFFIXES_KEY, " php6  , php7, , ");
  
      Php php = new Php(settings.asConfig());
      assertTrue(php.hasValidSuffixes("goodExtension.php6"));
      assertTrue(php.hasValidSuffixes("goodExtension.php7"));
    }
test_case.class_method_signature: PhpTest.shouldCheckCustomValidPhpExtensions()
test_case.full_signature: @Test public void shouldCheckCustomValidPhpExtensions()
test_case.identifier: shouldCheckCustomValidPhpExtensions
test_case.invocations: setProperty asConfig assertTrue hasValidSuffixes assertTrue hasValidSuffixes
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCheckCustomValidPhpExtensions()
focal_class.declarator: NAME = "PHP"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "PHP";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: KEY = "php"
focal_class.modifier: public static final
focal_class.original_string: public static final String KEY = "php";
focal_class.type: String
focal_class.var_name: KEY
focal_class.declarator: DEFAULT_FILE_SUFFIXES = "php,php3,php4,php5,phtml,inc"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_FILE_SUFFIXES = "php,php3,php4,php5,phtml,inc";
focal_class.type: String
focal_class.var_name: DEFAULT_FILE_SUFFIXES
focal_class.declarator: settings
focal_class.modifier: private
focal_class.original_string: private Configuration settings;
focal_class.type: Configuration
focal_class.var_name: settings
focal_class.file: sonar-php-plugin/src/main/java/org/sonar/plugins/php/api/Php.java
focal_class.identifier: Php
focal_class.class_method_signature: Php.Php(Configuration settings)
focal_class.full_signature: public  Php(Configuration settings)
focal_class.identifier: Php
focal_class.modifiers: public
focal_class.parameters: (Configuration settings)
focal_class.signature:  Php(Configuration settings)
focal_class.class_method_signature: Php.getFileSuffixes()
focal_class.full_signature: @Override public String[] getFileSuffixes()
focal_class.identifier: getFileSuffixes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getFileSuffixes()
focal_class.class_method_signature: Php.filterEmptyStrings(String[] stringArray)
focal_class.full_signature: private static String[] filterEmptyStrings(String[] stringArray)
focal_class.identifier: filterEmptyStrings
focal_class.modifiers: private static
focal_class.parameters: (String[] stringArray)
focal_class.return: String[]
focal_class.signature: String[] filterEmptyStrings(String[] stringArray)
focal_class.class_method_signature: Php.hasValidSuffixes(String fileName)
focal_class.full_signature: public boolean hasValidSuffixes(String fileName)
focal_class.identifier: hasValidSuffixes
focal_class.modifiers: public
focal_class.parameters: (String fileName)
focal_class.return: boolean
focal_class.signature: boolean hasValidSuffixes(String fileName)
focal_class.superclass: extends AbstractLanguage
focal_method.body: public boolean hasValidSuffixes(String fileName) {
      String pathLowerCase = StringUtils.lowerCase(fileName);
      for (String suffix : getFileSuffixes()) {
        if (pathLowerCase.endsWith("." + StringUtils.lowerCase(suffix))) {
          return true;
        }
      }
      return false;
    }
focal_method.class_method_signature: Php.hasValidSuffixes(String fileName)
focal_method.full_signature: public boolean hasValidSuffixes(String fileName)
focal_method.identifier: hasValidSuffixes
focal_method.invocations: lowerCase getFileSuffixes endsWith lowerCase
focal_method.modifiers: public
focal_method.parameters: (String fileName)
focal_method.return: boolean
focal_method.signature: boolean hasValidSuffixes(String fileName)