Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

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

include/onupdate.php 1 location

@@ 139-144 (lines=6) @@
136
        }
137
138
        //  ---  CREATE FOLDERS ---------------
139
        if (count($configurator->uploadFolders) > 0) {
140
            //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
141
            foreach (array_keys($configurator->uploadFolders) as $i) {
142
                $classUtil::createFolder($configurator->uploadFolders[$i]);
143
            }
144
        }
145
146
        //  ---  COPY blank.png FILES ---------------
147
        if (count($configurator->blankFiles) > 0) {