Code Duplication    Length = 6-6 lines in 2 locations

include/onupdate.php 1 location

@@ 189-194 (lines=6) @@
186
        }
187
188
        //  ---  CREATE FOLDERS ---------------
189
        if (count($configurator->uploadFolders) > 0) {
190
            //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
191
            foreach (array_keys($configurator->uploadFolders) as $i) {
192
                $classUtility::createFolder($configurator->uploadFolders[$i]);
193
            }
194
        }
195
196
        //  ---  COPY blank.png FILES ---------------
197
        if (count($configurator->blankFiles) > 0) {

include/oninstall.php 1 location

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