Code Duplication    Length = 10-10 lines in 2 locations

application/modules/translator/translator.php 1 location

@@ 46-55 (lines=10) @@
43
                continue;
44
            }
45
46
            if (substr($line, 0, 5) == 'msgid') {
47
                if (preg_match('/"(.*?)"/', $line, $matches)) {
48
                    $origin = $matches[1];
49
                    if (!strlen($origin)) {
50
                        $origin = 0;
51
                    }
52
                }
53
54
                continue;
55
            }
56
57
            if (substr($line, 0, 6) == 'msgstr') {
58
                if ($origin) {

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

@@ 681-690 (lines=10) @@
678
                continue;
679
            }
680
681
            if (substr($line, 0, 5) == 'msgid') {
682
                if (preg_match('/"(.*?)"$/', trim($line), $matches)) {
683
                    $origin = $matches[1];
684
                    if (!strlen($origin)) {
685
                        $origin = 0;
686
                    }
687
                }
688
689
                continue;
690
            }
691
692
            if (substr($line, 0, 6) == 'msgstr') {
693
                if ($origin) {