Code Duplication    Length = 9-9 lines in 2 locations

src/Converter/ParagraphConverter.php 2 locations

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