Completed
Push — master ( d44ef5...c7e879 )
by Fèvre
12s
created

ReplyExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBlockParsers() 0 6 1
A getBlockRenderers() 0 6 1
1
<?php
2
namespace Xetaravel\Markdown\Reply;
3
4
use League\CommonMark\Extension\Extension;
5
6
class ReplyExtension extends Extension
7
{
8
    /**
9
     * Returns a list of block parsers to add to the existing list.
10
     *
11
     * @return array
12
     */
13
    public function getBlockParsers()
14
    {
15
        return [
16
            new ReplyParser(),
17
        ];
18
    }
19
20
    /**
21
     * Returns a list of block renderers to add to the existing list.
22
     *
23
     * @return array
24
     */
25
    public function getBlockRenderers()
26
    {
27
        return [
28
            Reply::class => new ReplyRenderer(),
29
        ];
30
    }
31
}
32