Code Duplication    Length = 6-6 lines in 2 locations

include/oninstall.php 1 location

@@ 74-79 (lines=6) @@
71
    }
72
73
    //  ---  CREATE FOLDERS ---------------
74
    if (count($configurator['uploadFolders']) > 0) {
75
        //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
76
        foreach (array_keys($configurator['uploadFolders']) as $i) {
77
            $classUtilities::createFolder($configurator['uploadFolders'][$i]);
78
        }
79
    }
80
81
    //  ---  COPY blank.png FILES ---------------
82
    if (count($configurator['copyBlankFiles']) > 0) {

include/onupdate.php 1 location

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