Code Duplication    Length = 7-7 lines in 2 locations

include/oninstall.php 1 location

@@ 99-105 (lines=7) @@
96
        }
97
    }
98
    //  ---  COPY blank.png FILES ---------------
99
    if (count($configurator->copyBlankFiles) > 0) {
100
        $file = __DIR__ . '/../assets/images/blank.png';
101
        foreach (array_keys($configurator->copyBlankFiles) as $i) {
102
            $dest = $configurator->copyBlankFiles[$i] . '/blank.png';
103
            $utility::copyFile($file, $dest);
104
        }
105
    }
106
107
    //  ---  COPY test folder files ---------------
108
    if (count($configurator->copyTestFolders) > 0) {

include/onupdate.php 1 location

@@ 137-143 (lines=7) @@
134
        }
135
136
        //  ---  COPY blank.png FILES ---------------
137
        if (count($configurator->copyBlankFiles) > 0) {
138
            $file = __DIR__ . '/../assets/images/blank.png';
139
            foreach (array_keys($configurator->copyBlankFiles) as $i) {
140
                $dest = $configurator->copyBlankFiles[$i] . '/blank.png';
141
                $utility::copyFile($file, $dest);
142
            }
143
        }
144
145
        //delete .html entries from the tpl table
146
        $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";