Skip to content
Snippets Groups Projects
Commit e063eba7 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3028264: Unnecessary check for is_dir('..')

parent db03f776
Branches
Tags
1 merge request!7Issue #3028264: Unnecessary check for is_dir('..')
......@@ -37,7 +37,7 @@ class TemporaryFiles extends Check {
$dir = scandir($site_path);
foreach ($dir as $file) {
// Set full path to only files.
if (!is_dir($file)) {
if (!in_array($file, ['.', '..'], TRUE) && !is_dir($file)) {
$files[] = $site_path . $file;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment