Completed
Push — 1.5 ( 93aa3f...fe2226 )
by Colin
01:05
created

TableOfContentsPlaceholder   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A canContain() 0 4 1
A isCode() 0 4 1
A matchesNextLine() 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
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\CommonMark\Extension\TableOfContents\Node;
13
14
use League\CommonMark\Block\Element\AbstractBlock;
15
use League\CommonMark\Cursor;
16
17
final class TableOfContentsPlaceholder extends AbstractBlock
18
{
19
    public function canContain(AbstractBlock $block): bool
20
    {
21
        return false;
22
    }
23
24 3
    public function isCode(): bool
25
    {
26 3
        return false;
27
    }
28
29 3
    public function matchesNextLine(Cursor $cursor): bool
30
    {
31 3
        return false;
32
    }
33
}
34