Code Duplication    Length = 17-17 lines in 2 locations

include/oninstall.php 1 location

@@ 32-48 (lines=17) @@
29
 *
30
 * @return bool true if ready to install, false if not
31
 */
32
function xoops_module_pre_install_randomquote(&$module)
33
{
34
35
    if (!class_exists('RandomquoteUtilities')) {
36
        xoops_load('utilities', 'randomquote');
37
    }
38
    //check for minimum XOOPS version
39
    if (!RandomquoteUtilities::checkXoopsVer($module)) {
40
        return false;
41
    }
42
43
    // check for minimum PHP version
44
    if (!RandomquoteUtilities::checkPHPVer($module)) {
45
        return false;
46
    }
47
    return true;
48
}
49
50
/**
51
 *

include/onupdate.php 1 location

@@ 52-68 (lines=17) @@
49
 *
50
 * @return bool true if ready to install, false if not
51
 */
52
function xoops_module_pre_update_randomquote(&$module)
53
{
54
55
    if (!class_exists('RandomquoteUtilities')) {
56
        xoops_load('utilities', 'randomquote');
57
    }
58
    //check for minimum XOOPS version
59
    if (!RandomquoteUtilities::checkXoopsVer($module)) {
60
        return false;
61
    }
62
63
    // check for minimum PHP version
64
    if (!RandomquoteUtilities::checkPHPVer($module)) {
65
        return false;
66
    }
67
    return true;
68
}
69
70
/**
71
 * @return bool