Code Duplication    Length = 7-7 lines in 2 locations

include/oninstall.php 1 location

@@ 92-98 (lines=7) @@
89
    }
90
91
    //  ---  COPY blank.png FILES ---------------
92
    if (count($configurator->blankFiles) > 0) {
93
        $file = __DIR__ . '/../assets/images/blank.png';
94
        foreach (array_keys($configurator->blankFiles) as $i) {
95
            $dest = $configurator->blankFiles[$i] . '/blank.png';
96
            $utilityClass::copyFile($file, $dest);
97
        }
98
    }
99
100
    /*
101
        foreach (array_keys($uploadFolders) as $i) {

include/onupdate.php 1 location

@@ 153-159 (lines=7) @@
150
        }
151
152
        //  ---  COPY blank.png FILES ---------------
153
        if (count($configurator->blankFiles) > 0) {
154
            $file = __DIR__ . '/../assets/images/blank.png';
155
            foreach (array_keys($configurator->blankFiles) as $i) {
156
                $dest = $configurator->blankFiles[$i] . '/blank.png';
157
                $utilityClass::copyFile($file, $dest);
158
            }
159
        }
160
161
        //delete .html entries from the tpl table
162
        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";