Code Duplication    Length = 4-4 lines in 2 locations

class/Common/VersionChecks.php 2 locations

@@ 44-47 (lines=4) @@
41
        }
42
        $success     = true;
43
44
        if (version_compare($currentVer, $requiredVer, '<')) {
45
            $success     = false;
46
            $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
47
        }
48
49
        return $success;
50
    }
@@ 68-71 (lines=4) @@
65
        $verNum  = PHP_VERSION;
66
        $reqVer  = $module->getInfo('min_php');
67
        if (false !== $reqVer && '' !== $reqVer) {
68
            if (version_compare($verNum, $reqVer, '<')) {
69
                $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
70
                $success = false;
71
            }
72
        }
73
74
        return $success;