Code Duplication    Length = 7-7 lines in 2 locations

include/onupdate.php 1 location

@@ 197-203 (lines=7) @@
194
        }
195
196
        //  ---  COPY blank.png FILES ---------------
197
        if (count($configurator->blankFiles) > 0) {
198
            $file = __DIR__ . '/../assets/images/blank.png';
199
            foreach (array_keys($configurator->blankFiles) as $i) {
200
                $dest = $configurator->blankFiles[$i] . '/blank.png';
201
                $classUtility::copyFile($file, $dest);
202
            }
203
        }
204
205
        //delete .html entries from the tpl table
206
        $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . '\' AND `tpl_file` LIKE \'%.html%\'';

include/oninstall.php 1 location

@@ 105-111 (lines=7) @@
102
    }
103
104
    //  ---  COPY blank.png FILES ---------------
105
    if (count($configurator->blankFiles) > 0) {
106
        $file = __DIR__ . '/../assets/images/blank.png';
107
        foreach (array_keys($configurator->blankFiles) as $i) {
108
            $dest = $configurator->blankFiles[$i] . '/blank.png';
109
            $classUtility::copyFile($file, $dest);
110
        }
111
    }
112
    //delete .html entries from the tpl table
113
    $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
114
    $GLOBALS['xoopsDB']->queryF($sql);