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

GithubFlavoredMarkdownConverter::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 2
crap 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