From 1614dee6dc83c6ae069cc5fe0ffc47397a0f6355 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 19 Aug 2019 19:41:46 +0200 Subject: Codechecker: removed unused use Signed-off-by: Roeland Jago Douma --- lib/private/App/CodeChecker/CodeChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/App/CodeChecker/CodeChecker.php b/lib/private/App/CodeChecker/CodeChecker.php index 8f539897c97..ba0cac3d765 100644 --- a/lib/private/App/CodeChecker/CodeChecker.php +++ b/lib/private/App/CodeChecker/CodeChecker.php @@ -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) { -- cgit v1.2.3