Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

@@ 81-86 (lines=6) @@
78
    $gpermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
79
80
    //  ---  CREATE FOLDERS ---------------
81
    if (count($configurator->uploadFolders) > 0) {
82
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
83
        foreach (array_keys($configurator->uploadFolders) as $i) {
84
            $utilityClass::createFolder($configurator->uploadFolders[$i]);
85
        }
86
    }
87
88
    //  ---  COPY blank.png FILES ---------------
89
    if (count($configurator->copyBlankFiles) > 0) {

include/onupdate.php 1 location

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