Code Duplication    Length = 5-5 lines in 2 locations

src/Data/Provider/Doc/SupportSugarcrm.php 2 locations

@@ 121-125 (lines=5) @@
118
                            $nextSiblings = $nodes->nextAll();
119
120
                            $content = [];
121
                            foreach (['p', 'ul'] as $tag) {
122
                                if (count($filtered = $nextSiblings->filter($tag))) {
123
                                    $content[] = sprintf('<%1$s>%2$s</%1$s>', $tag, $filtered->first()->html());
124
                                }
125
                            }
126
127
                            if ($content) {
128
                                $releaseNote[$key] = $this->htmlConverter->convert(implode('<br>', $content));
@@ 208-212 (lines=5) @@
205
        $nodes = $crawler->filter($id)->nextAll();
206
207
        $content = [];
208
        foreach (['ol', 'p'] as $tag) {
209
            if (count($filtered = $nodes->filter($tag))) {
210
                $content[] = sprintf('<%1$s>%2$s</%1$s>', $tag, $filtered->first()->html());
211
            }
212
        }
213
214
        $info = str_replace(['**<', '>**'], '**', $this->htmlConverter->convert(implode('<br>', $content)));
215