Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

@@ 84-89 (lines=6) @@
81
    //    require_once $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
82
83
    //  ---  CREATE FOLDERS ---------------
84
    if (count($configurator->uploadFolders) > 0) {
85
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
86
        foreach (array_keys($configurator->uploadFolders) as $i) {
87
            $utilityClass::createFolder($configurator->uploadFolders[$i]);
88
        }
89
    }
90
91
    //  ---  COPY blank.png FILES ---------------
92
    if (count($configurator->blankFiles) > 0) {

include/onupdate.php 1 location

@@ 145-150 (lines=6) @@
142
        }
143
144
        //  ---  CREATE FOLDERS ---------------
145
        if (count($configurator->uploadFolders) > 0) {
146
            //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
147
            foreach (array_keys($configurator->uploadFolders) as $i) {
148
                $utilityClass::createFolder($configurator->uploadFolders[$i]);
149
            }
150
        }
151
152
        //  ---  COPY blank.png FILES ---------------
153
        if (count($configurator->blankFiles) > 0) {