Commit 5dfd66aa authored by Klaus Purer's avatar Klaus Purer
Browse files

refactor(ProjectDetection): Simplify array_filter call

parent da0d58cd
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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);