Code Duplication    Length = 3-3 lines in 2 locations

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

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