This function seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
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
*
52
* Performs tasks required during installation of the module
53
* @param obj $module {@link XoopsModule}
54
*
55
* @return bool true if installation successful, false if not
56
*/
57
function xoops_module_install_randomquote(&$module) {
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.