Esempio n. 1
0
 /**
  * Removes any files that don't pass regex validation
  *
  * @param   ConfigData $config ConfigData object
  * @return  array
  */
 public function filterFilesWithRegex(ConfigData $config)
 {
     $include = $this->getIncludeFiles($config->getAllDetectedFiles(), $config->getIncludeFileRegex());
     $exclude = $this->getExcludeFiles($config->getAllDetectedFiles(), $config->getExcludeFileRegex());
     $validFiles = array_values(array_diff($include, $exclude));
     return $validFiles;
 }