Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 1261-1267 (lines=7) @@
1258
            return;
1259
        }
1260
1261
        if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches))
1262
        {
1263
            return array(
1264
                'markup' => $matches[0],
1265
                'extent' => strlen($matches[0]),
1266
            );
1267
        }
1268
1269
        if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
1270
        {
@@ 1269-1275 (lines=7) @@
1266
            );
1267
        }
1268
1269
        if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
1270
        {
1271
            return array(
1272
                'markup' => $matches[0],
1273
                'extent' => strlen($matches[0]),
1274
            );
1275
        }
1276
1277
        if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
1278
        {
@@ 1277-1283 (lines=7) @@
1274
            );
1275
        }
1276
1277
        if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
1278
        {
1279
            return array(
1280
                'markup' => $matches[0],
1281
                'extent' => strlen($matches[0]),
1282
            );
1283
        }
1284
    }
1285
1286
    protected function inlineSpecialCharacter($Excerpt)