Code Duplication    Length = 4-4 lines in 2 locations

class/Common/VersionChecks.php 2 locations

@@ 48-51 (lines=4) @@
45
        }
46
        $success = true;
47
48
        if (version_compare($currentVer, $requiredVer, '<')) {
49
            $success = false;
50
            $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
51
        }
52
53
        return $success;
54
    }
@@ 80-83 (lines=4) @@
77
        $reqVer = &$module->getInfo('min_php');
78
79
        if (false !== $reqVer && '' !== $reqVer && !is_array($reqVer)) {
80
            if (version_compare($verNum, $reqVer, '<')) {
81
                $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
82
                $success = false;
83
            }
84
        }
85
86
        return $success;