Commit fe2f0163 authored by Felix Flor's avatar Felix Flor

fixed a bug that will be occured when ignore file has whitespaces in line

parent f1d6f35b
......@@ -20,8 +20,10 @@ $filesToCheck = searchDirectoryForFiles($path);
$ignoredModulesFile = $path.'/.aphpbreakdown-ignored-modules';
$GLOBALS['ignored_php_modules'] = array();
if(\file_exists($ignoredModulesFile) && \is_readable($ignoredModulesFile))
if(\file_exists($ignoredModulesFile) && \is_readable($ignoredModulesFile)){
$GLOBALS['ignored_php_modules'] = \file($ignoredModulesFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$GLOBALS['ignored_php_modules'] = \array_map('trim', $GLOBALS['ignored_php_modules']);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment