ThematicBreak   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 29
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isCode() 0 4 1
A matchesNextLine() 0 4 1
A canContain() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
9
 *  - (c) John MacFarlane
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace League\CommonMark\Block\Element;
16
17
use League\CommonMark\Cursor;
18
19
class ThematicBreak extends AbstractBlock
20
{
21
    /**
22
     * Returns true if this block can contain the given block as a child node
23
     *
24
     * @param AbstractBlock $block
25
     *
26
     * @return bool
27
     */
28 3
    public function canContain(AbstractBlock $block): bool
29
    {
30 3
        return false;
31
    }
32
33
    /**
34
     * Whether this is a code block
35
     *
36
     * @return bool
37
     */
38 87
    public function isCode(): bool
39
    {
40 87
        return false;
41
    }
42
43 39
    public function matchesNextLine(Cursor $cursor): bool
44
    {
45 39
        return false;
46
    }
47
}
48