Code Duplication    Length = 10-10 lines in 2 locations

dist/jate/modules/Parsedown/Parsedown/Parsedown.php 2 locations

@@ 341-350 (lines=10) @@
338
        }
339
    }
340
341
    protected function blockCodeComplete($Block)
342
    {
343
        $text = $Block['element']['text']['text'];
344
345
        $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
346
347
        $Block['element']['text']['text'] = $text;
348
349
        return $Block;
350
    }
351
352
    #
353
    # Comment
@@ 456-465 (lines=10) @@
453
        return $Block;
454
    }
455
456
    protected function blockFencedCodeComplete($Block)
457
    {
458
        $text = $Block['element']['text']['text'];
459
460
        $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
461
462
        $Block['element']['text']['text'] = $text;
463
464
        return $Block;
465
    }
466
467
    #
468
    # Header