GithubFlavoredMarkdownExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the league/commonmark package.
7
 *
8
 * (c) Colin O'Dell <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace League\CommonMark\Extension;
15
16
use League\CommonMark\Environment\ConfigurableEnvironmentInterface;
17
use League\CommonMark\Extension\Autolink\AutolinkExtension;
18
use League\CommonMark\Extension\DisallowedRawHtml\DisallowedRawHtmlExtension;
19
use League\CommonMark\Extension\Strikethrough\StrikethroughExtension;
20
use League\CommonMark\Extension\Table\TableExtension;
21
use League\CommonMark\Extension\TaskList\TaskListExtension;
22
23
final class GithubFlavoredMarkdownExtension implements ExtensionInterface
24
{
25 120
    public function register(ConfigurableEnvironmentInterface $environment): void
26
    {
27 120
        $environment->addExtension(new AutolinkExtension());
28 120
        $environment->addExtension(new DisallowedRawHtmlExtension());
29 120
        $environment->addExtension(new StrikethroughExtension());
30 120
        $environment->addExtension(new TableExtension());
31 120
        $environment->addExtension(new TaskListExtension());
32 120
    }
33
}
34