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

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