Completed
Pull Request — master (#466)
by
unknown
41s
created
src/Hal/Component/File/Finder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,15 +59,15 @@
 block discarded – undo
59 59
         $files = [];
60 60
         foreach ($paths as $path) {
61 61
             if (is_dir($path)) {
62
-                $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
62
+                $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
63 63
                 $directory = new RecursiveDirectoryIterator($path);
64 64
                 $iterator = new RecursiveIteratorIterator($directory);
65 65
 
66 66
                 $filterRegex = sprintf(
67 67
                     '`^%s%s%s$`',
68 68
                     preg_quote($path, '`'),
69
-                    !empty($this->excludedDirs) ? '((?!' . implode('|', array_map('preg_quote', $this->excludedDirs)) . ').)+' : '.+',
70
-                    '\.(' . implode('|', $this->extensions) . ')'
69
+                    !empty($this->excludedDirs) ? '((?!'.implode('|', array_map('preg_quote', $this->excludedDirs)).').)+' : '.+',
70
+                    '\.('.implode('|', $this->extensions).')'
71 71
                 );
72 72
 
73 73
                 $filteredIterator = new RegexIterator(
Please login to merge, or discard this patch.