Code Duplication    Length = 13-13 lines in 2 locations

include/action.module.php 2 locations

@@ 109-121 (lines=13) @@
106
 *
107
 * @return bool true if ready to install, false if not
108
 */
109
function xoops_module_pre_install_xoopspartners(XoopsModule $module)
110
{
111
    //check for minimum XOOPS version
112
    if (!xoopspartnersCheckXoopsVer($module)) {
113
        return false;
114
    }
115
116
    // check for minimum PHP version
117
    if (!xoopspartnersCheckPHPVer($module)) {
118
        return false;
119
    }
120
    return true;
121
}
122
123
/**
124
 *
@@ 154-166 (lines=13) @@
151
 *
152
 * @return bool true if successfully ready to update module, false if not
153
 */
154
function xoops_module_pre_update_xoopspartners(XoopsModule $module)
155
{
156
    //check for minimum XOOPS version
157
    if (!xoopspartnersCheckXoopsVer($module)) {
158
        return false;
159
    }
160
161
    // check for minimum PHP version
162
    if (!xoopspartnersCheckPHPVer($module)) {
163
        return false;
164
    }
165
    return true;
166
}
167
168
/**
169
 *