Skip to content
Snippets Groups Projects
Commit 5dfd66aa authored by Klaus Purer's avatar Klaus Purer
Browse files

refactor(ProjectDetection): Simplify array_filter call

parent da0d58cd
Branches
Tags
No related merge requests found
......@@ -95,12 +95,7 @@ class Project
}
// Filter out directories.
$infoFiles = array_filter(
$infoFiles,
function ($fileName) {
return is_file($fileName);
}
);
$infoFiles = array_filter($infoFiles, 'is_file');
// Go one directory up if we do not find an info file here.
$dir = dirname($dir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment