Code Duplication    Length = 4-4 lines in 2 locations

src/Generators/Mo.php 2 locations

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