Code Duplication    Length = 5-7 lines in 2 locations

class/files/TDMCreatePhpCode.php 2 locations

@@ 178-182 (lines=5) @@
175
    public function getPhpCodeIncludeDir($directory = '', $filename = '', $once = false, $isPath = false, $type = 'include')
176
    {
177
        if ($once == false) {
178
            if ($isPath === false) {
179
                $ret = "{$type} {$directory} .'/{$filename}.php';\n";
180
            } else {
181
                $ret = "{$type} {$directory};\n";
182
            }
183
        } else {
184
            if ($isPath === false) {
185
                $ret = "{$type}_once {$directory} .'/{$filename}.php';\n";
@@ 183-189 (lines=7) @@
180
            } else {
181
                $ret = "{$type} {$directory};\n";
182
            }
183
        } else {
184
            if ($isPath === false) {
185
                $ret = "{$type}_once {$directory} .'/{$filename}.php';\n";
186
            } else {
187
                $ret = "{$type}_once {$directory};\n";
188
            }
189
        }
190
191
        return $ret;
192
    }