Codechecker: removed unused use

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-08-19 19:41:46 +02:00
parent 1521da14ff
commit 1614dee6dc
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -92,7 +92,7 @@ class CodeChecker extends BasicEmitter {
}, $excludedDirectories);
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
$iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){
$iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($excludes){
/** @var SplFileInfo $item */
foreach($excludes as $exclude) {
if (substr($item->getPath(), 0, strlen($exclude)) === $exclude) {