Code Duplication    Length = 3-3 lines in 2 locations

block/ListTrait.php 2 locations

@@ 54-56 (lines=3) @@
51
            return false;
52
        }
53
        $depthMax = $this->_listDepth - 1;
54
        if (preg_match('/^(#{1,' . $depthMax . '})[^#]+/', $line, $matches)) {
55
            return $this->_nestedListTypes[strlen($matches[1])] === 'ol';
56
        }
57
        if (preg_match('/^(\*{1,' . $depthMax . '})[^\*]+/', $line, $matches)) {
58
            return $this->_nestedListTypes[strlen($matches[1])] === 'ul';
59
        }
@@ 57-59 (lines=3) @@
54
        if (preg_match('/^(#{1,' . $depthMax . '})[^#]+/', $line, $matches)) {
55
            return $this->_nestedListTypes[strlen($matches[1])] === 'ol';
56
        }
57
        if (preg_match('/^(\*{1,' . $depthMax . '})[^\*]+/', $line, $matches)) {
58
            return $this->_nestedListTypes[strlen($matches[1])] === 'ul';
59
        }
60
        return false;
61
    }
62