Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

@@ 94-99 (lines=6) @@
91
    $gpermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
92
93
    //  ---  CREATE FOLDERS ---------------
94
    if (count($configurator->uploadFolders) > 0) {
95
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
96
        foreach (array_keys($configurator->uploadFolders) as $i) {
97
            $utilityClass::createFolder($configurator->uploadFolders[$i]);
98
        }
99
    }
100
101
    //  ---  COPY blank.png FILES ---------------
102
    if (count($configurator->blankFiles) > 0) {

include/onupdate.php 1 location

@@ 125-130 (lines=6) @@
122
        }
123
124
        //  ---  CREATE FOLDERS ---------------
125
        if (count($configurator->uploadFolders) > 0) {
126
            //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
127
            foreach (array_keys($configurator->uploadFolders) as $i) {
128
                $utilityClass::createFolder($configurator->uploadFolders[$i]);
129
            }
130
        }
131
132
        //  ---  COPY blank.png FILES ---------------
133
        if (count($configurator->blankFiles) > 0) {