Code Duplication    Length = 4-4 lines in 2 locations

src/Generator/MoGenerator.php 2 locations

@@ 119-122 (lines=4) @@
116
        $mo .= pack('L', $translationsIndexOffset + $translationsIndexSize);
117
118
        // Write the lengths & offsets of the original strings
119
        foreach ($originalsIndex as $info) {
120
            $mo .= pack('L', $info['length']);
121
            $mo .= pack('L', $originalsStringsOffset + $info['relativeOffset']);
122
        }
123
124
        // Write the lengths & offsets of the translated strings
125
        foreach ($translationsIndex as $info) {
@@ 125-128 (lines=4) @@
122
        }
123
124
        // Write the lengths & offsets of the translated strings
125
        foreach ($translationsIndex as $info) {
126
            $mo .= pack('L', $info['length']);
127
            $mo .= pack('L', $translationsStringsOffset + $info['relativeOffset']);
128
        }
129
130
        // Write original strings
131
        $mo .= $originalsTable;