Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

@@ 109-114 (lines=6) @@
106
//    }
107
108
    //  ---  CREATE FOLDERS ---------------
109
    if (count($configurator->uploadFolders) > 0) {
110
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
111
        foreach (array_keys($configurator->uploadFolders) as $i) {
112
            $classUtility::createFolder($configurator->uploadFolders[$i]);
113
        }
114
    }
115
116
    //  ---  COPY blank.png FILES ---------------
117
    if (count($configurator->blankFiles) > 0) {

include/onupdate.php 1 location

@@ 239-244 (lines=6) @@
236
    }
237
238
    //  ---  CREATE FOLDERS ---------------
239
    if (count($configurator->uploadFolders) > 0) {
240
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
241
        foreach (array_keys($configurator->uploadFolders) as $i) {
242
            $classUtility::createFolder($configurator->uploadFolders[$i]);
243
        }
244
    }
245
246
    //  ---  COPY blank.png FILES ---------------
247
    if (count($configurator->blankFiles) > 0) {