Code Duplication    Length = 6-7 lines in 2 locations

class/files/TDMCreateArchitecture.php 2 locations

@@ 170-175 (lines=6) @@
167
        // Creation of "language" folder and index.html file
168
        $this->makeDirAndCopyFile('language', $indexFile, 'index.html');
169
        // Creation of 'default english' folder
170
        if ($language != 'english') {
171
            // Creation of "language/local_language" folder and index.html file
172
            $this->makeDirAndCopyFile('language/'.$language, $indexFile, 'index.html');
173
            // Creation of "language/local_language/help" folder and index.html file
174
            $this->makeDirAndCopyFile('language/'.$language.'/help', $indexFile, 'index.html');
175
        }
176
        // Creation of "english" folder and index.html file
177
        $this->makeDirAndCopyFile('language/english', $indexFile, 'index.html');
178
        // Creation of "language/english/help" folder and index.html file
@@ 198-204 (lines=7) @@
195
            // Creation of "sql" folder and index.html file
196
            $this->makeDirAndCopyFile('sql', $indexFile, 'index.html');
197
            if ((1 == $module->getVar('mod_notifications')) && (1 == $table->getVar('table_notifications'))) {
198
                if ($language != 'english') {
199
                    // Creation of "language/local_language/mail_template" folder and index.html file
200
                    $this->makeDirAndCopyFile('language/'.$language.'/mail_template', $indexFile, 'index.html');
201
                } else {
202
                    // Creation of "language/english/mail_template" folder and index.html file
203
                    $this->makeDirAndCopyFile('language/english/mail_template', $indexFile, 'index.html');
204
                }
205
            }
206
        }
207
    }