@@ 77-93 (lines=17) @@ | ||
74 | * |
|
75 | * @return Finder |
|
76 | */ |
|
77 | private function getConfiguredFinder(array $config) |
|
78 | { |
|
79 | // 'dirs', 'excluded_dirs', 'excluded_names' |
|
80 | ||
81 | $finder = new Finder(); |
|
82 | $finder->in($config['dirs']); |
|
83 | ||
84 | foreach ($config['excluded_dirs'] as $exclude) { |
|
85 | $finder->notPath($exclude); |
|
86 | } |
|
87 | ||
88 | foreach ($config['excluded_names'] as $exclude) { |
|
89 | $finder->notName($exclude); |
|
90 | } |
|
91 | ||
92 | return $finder; |
|
93 | } |
|
94 | } |
|
95 |
@@ 71-87 (lines=17) @@ | ||
68 | * |
|
69 | * @return Finder |
|
70 | */ |
|
71 | private function getConfiguredFinder(array $config) |
|
72 | { |
|
73 | // 'dirs', 'excluded_dirs', 'excluded_names' |
|
74 | ||
75 | $finder = new Finder(); |
|
76 | $finder->in($config['dirs']); |
|
77 | ||
78 | foreach ($config['excluded_dirs'] as $exclude) { |
|
79 | $finder->notPath($exclude); |
|
80 | } |
|
81 | ||
82 | foreach ($config['excluded_names'] as $exclude) { |
|
83 | $finder->notName($exclude); |
|
84 | } |
|
85 | ||
86 | return $finder; |
|
87 | } |
|
88 | } |
|
89 |