Completed
Push — master ( 83739a...a13ee4 )
by Colin
14s queued 11s
created

GithubFlavoredMarkdownConverter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
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;
13
14
/**
15
 * Converts Github Flavored Markdown to HTML.
16
 */
17
class GithubFlavoredMarkdownConverter extends CommonMarkConverter
18
{
19
    /**
20
     * Create a new commonmark converter instance.
21
     *
22
     * @param array                     $config
23
     * @param EnvironmentInterface|null $environment
24
     */
25 72
    public function __construct(array $config = [], EnvironmentInterface $environment = null)
26
    {
27 72
        if ($environment === null) {
28 72
            $environment = Environment::createGFMEnvironment();
29
        }
30
31 72
        parent::__construct($config, $environment);
32 72
    }
33
}
34