Code Duplication    Length = 4-4 lines in 2 locations

application/modules/translator/translator.php 1 location

@@ 41-44 (lines=4) @@
38
        foreach ($poFile as $line) {
39
            $first2symbols = substr($line, 0, 2);
40
41
            if ($first2symbols == '#:') {
42
                $links[] = trim(substr($line, 2, -1));
43
                continue;
44
            }
45
46
            if (substr($line, 0, 5) == 'msgid') {
47
                if (preg_match('/"(.*?)"/', $line, $matches)) {

application/modules/translator/classes/PoFileManager.php 1 location

@@ 676-679 (lines=4) @@
673
                continue;
674
            }
675
676
            if ($first2symbols == '#:') {
677
                $links[] = trim(substr($line, 2, -1));
678
                continue;
679
            }
680
681
            if (substr($line, 0, 5) == 'msgid') {
682
                if (preg_match('/"(.*?)"$/', trim($line), $matches)) {