Code Duplication    Length = 5-5 lines in 2 locations

class/files/include/IncludeInstall.php 1 location

@@ 285-289 (lines=5) @@
282
        $content = $this->getHeaderFilesComments($module, $filename);
283
        $content .= $this->getInstallModuleFolder($moduleDirname);
284
285
        foreach (array_keys($tables) as $t) {
286
            $tableName = $tables[$t]->getVar('table_name');
287
            $tableInstall[] = $tables[$t]->getVar('table_install');
288
            $content .= $this->getInstallTableFolder($moduleDirname, $tableName);
289
        }
290
        if (in_array(1, $tableInstall)) {
291
            $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
292
            foreach (array_keys($fields) as $f) {

class/files/user/UserXoopsVersion.php 1 location

@@ 252-256 (lines=5) @@
249
        $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'about', false, true);
250
        $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'header', false, true);
251
        $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'index', false, true);
252
        foreach (array_keys($tables) as $t) {
253
            $tableName = $tables[$t]->getVar('table_name');
254
            $tablePermissions[] = $tables[$t]->getVar('table_permissions');
255
            $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, false, true);
256
        }
257
        if (in_array(1, $tablePermissions)) {
258
            $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'permissions', false, true);
259
        }