Code Duplication    Length = 9-9 lines in 2 locations

src/Converter/ParagraphConverter.php 2 locations

@@ 59-67 (lines=9) @@
56
     *
57
     * @return string
58
     */
59
    private function escapeBlockquotelikeCharacters($line)
60
    {
61
        if (strpos(ltrim($line), '>') === 0) {
62
            // Found a > char, escaping it
63
            return '\\' . ltrim($line);
64
        } else {
65
            return $line;
66
        }
67
    }
68
69
    /**
70
     * @param string $line
@@ 74-82 (lines=9) @@
71
     *
72
     * @return string
73
     */
74
    private function escapeHeaderlikeCharacters($line)
75
    {
76
        if (strpos(ltrim($line), '--') === 0) {
77
            // Found a -- structure, escaping it
78
            return '\\' . ltrim($line);
79
        } else {
80
            return $line;
81
        }
82
    }
83
}
84