Code Duplication    Length = 7-7 lines in 2 locations

include/oninstall.php 1 location

@@ 89-95 (lines=7) @@
86
    }
87
88
    //  ---  COPY blank.png FILES ---------------
89
    if (count($configurator->copyBlankFiles) > 0) {
90
        $file = __DIR__ . '/../assets/images/blank.png';
91
        foreach (array_keys($configurator->copyBlankFiles) as $i) {
92
            $dest = $configurator->copyBlankFiles[$i] . '/blank.png';
93
            $utilityClass::copyFile($file, $dest);
94
        }
95
    }
96
    //delete .html entries from the tpl table
97
    $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
98
    $xoopsDB->queryF($sql);

include/onupdate.php 1 location

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