Passed
Push — master ( 2911fd...dff342 )
by Brent
03:23
created

Parsedown   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A blockFencedCode() 0 10 2
1
<?php
2
3
namespace Brendt\Stitcher\Lib;
4
5
use \Parsedown as LibParsedown;
6
7
class Parsedown extends LibParsedown
8
{
9
    protected function blockFencedCode($Line)
10
    {
11
        $block = parent::blockFencedCode($Line);
12
13
        if (isset($block['element']['text']['attributes']['class'])) {
14
            $block['element']['attributes']['class'] = $block['element']['text']['attributes']['class'];
15
        }
16
17
        return $block;
18
    }
19
}
20