| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 2037 | public function __construct(array $config = [], EnvironmentInterface $environment = null) |
|
| 39 | { |
||
| 40 | 2037 | if ($environment === null) { |
|
| 41 | 2034 | $environment = Environment::createCommonMarkEnvironment(); |
|
| 42 | } |
||
| 43 | |||
| 44 | 2037 | if ($environment instanceof ConfigurableEnvironmentInterface) { |
|
| 45 | 2037 | $environment->mergeConfig($config); |
|
| 46 | } |
||
| 47 | |||
| 48 | 2037 | $this->environment = $environment; |
|
| 49 | |||
| 50 | 2037 | parent::__construct(new DocParser($environment), new HtmlRenderer($environment)); |
|
| 51 | 2037 | } |
|
| 52 | |||
| 61 |