Code Duplication    Length = 3-3 lines in 2 locations

lib/Goetas/Mail/ToSwiftMailParser/MimeParser.php 2 locations

@@ 210-212 (lines=3) @@
207
            $row = fgets($stream);
208
209
            if ($boundary !== null) {
210
                if (strpos($row, "--$boundary--") === 0) {
211
                    throw new Exception\EndOfMultiPartReachedException ($this->contentDecoder->decode(implode("", $rows), $encoding));
212
                }
213
                if (strpos($row, "--$boundary") === 0) {
214
                    throw new Exception\EndOfPartReachedException ($this->contentDecoder->decode(implode("", $rows), $encoding));
215
                }
@@ 213-215 (lines=3) @@
210
                if (strpos($row, "--$boundary--") === 0) {
211
                    throw new Exception\EndOfMultiPartReachedException ($this->contentDecoder->decode(implode("", $rows), $encoding));
212
                }
213
                if (strpos($row, "--$boundary") === 0) {
214
                    throw new Exception\EndOfPartReachedException ($this->contentDecoder->decode(implode("", $rows), $encoding));
215
                }
216
            }
217
            $rows [] = $row;
218
        }