Code Duplication    Length = 8-8 lines in 2 locations

main/plagiarism/compilatio/upload.php 2 locations

@@ 281-288 (lines=8) @@
278
}
279
280
281
function getFilename($txt) {
282
    $res = $txt;
283
    preg_match("|.*/([^/]+)|", $txt, $urlList);
284
    if (count($urlList) > 0) {
285
        $res = $urlList[1];
286
    }
287
    return $res;
288
}
289
290
function getWorkFolder($txt) {
291
    $res = "";
@@ 290-297 (lines=8) @@
287
    return $res;
288
}
289
290
function getWorkFolder($txt) {
291
    $res = "";
292
    preg_match("|(.*/)[^/]+|", $txt, $urlList);
293
    if (count($urlList) > 0) {
294
        $res = $urlList[1];
295
    }
296
    return $res;
297
}
298
299
function getShortFilename($txt) {
300
    $res = $txt;