Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 1464-1468 (lines=5) @@
1461
            $fileGray = $fileInfo['filename'].'_na.'.$fileInfo['extension'];
1462
            $fileGray = self::getCustomSysIconPath().$fileGray;
1463
1464
            if (file_exists($file) && is_file($file)) {
1465
                if (Security::check_abs_path($file, self::getCustomSysIconPath())) {
1466
                    unlink($file);
1467
                }
1468
            }
1469
1470
            if (file_exists($fileGray) && is_file($fileGray)) {
1471
                if (Security::check_abs_path($fileGray, self::getCustomSysIconPath())) {
@@ 1470-1474 (lines=5) @@
1467
                }
1468
            }
1469
1470
            if (file_exists($fileGray) && is_file($fileGray)) {
1471
                if (Security::check_abs_path($fileGray, self::getCustomSysIconPath())) {
1472
                    unlink($fileGray);
1473
                }
1474
            }
1475
1476
            $params = [
1477
                'custom_icon' => ''