Code Duplication    Length = 6-6 lines in 2 locations

func/filesystem.php 1 location

@@ 44-49 (lines=6) @@
41
		$name = realpath($name);
42
	if (is_dir($name) && !is_link($name))
43
	{
44
		foreach (scandir($name) as $file)
45
		{
46
			if (('.' == $file) || ('..' == $file))
47
				continue;
48
			DelFile($name . '/' . $file);
49
		}
50
		rmdir($name);
51
	}
52
	else

src/Fwlib/Util/Common/FileSystem.php 1 location

@@ 33-38 (lines=6) @@
30
        }
31
32
        if (is_dir($name) && !is_link($name)) {
33
            foreach (scandir($name) as $file) {
34
                if (('.' == $file) || ('..' == $file)) {
35
                    continue;
36
                }
37
                $this->del($name . DIRECTORY_SEPARATOR . $file);
38
            }
39
            rmdir($name);
40
        } else {
41
            unlink($name);