Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/course_home.lib.php 2 locations

@@ 1612-1616 (lines=5) @@
1609
            $fileGray = $fileInfo['filename'].'_na.'.$fileInfo['extension'];
1610
            $fileGray = self::getCustomSysIconPath().$fileGray;
1611
1612
            if (file_exists($file) && is_file($file)) {
1613
                if (Security::check_abs_path($file, self::getCustomSysIconPath())) {
1614
                    unlink($file);
1615
                }
1616
            }
1617
1618
            if (file_exists($fileGray) && is_file($fileGray)) {
1619
                if (Security::check_abs_path($fileGray, self::getCustomSysIconPath())) {
@@ 1618-1622 (lines=5) @@
1615
                }
1616
            }
1617
1618
            if (file_exists($fileGray) && is_file($fileGray)) {
1619
                if (Security::check_abs_path($fileGray, self::getCustomSysIconPath())) {
1620
                    unlink($fileGray);
1621
                }
1622
            }
1623
1624
            $params = [
1625
                'custom_icon' => ''