Code Duplication    Length = 6-7 lines in 2 locations

class/files/TDMCreateArchitecture.php 2 locations

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