Passed
Push — master ( c3d659...ab3de1 )
by Allan
03:38
created

Config::getEscapers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerChangelogs\Composer\Plugin;
7
8
class Config
9
{
10
    public function getAvailableFormats()
11
    {
12
        return array('sphinx', 'html', 'md', 'yml', 'rst', 'txt', 'slack');
13
    }
14
    
15
    public function getEscapers()
16
    {
17
        
18
        return array(
19
            'sphinx' => array(
20
                '^.. ' => '\\.\\. '
21
            ),
22
            'html' => array(
23
                '*' => array(
24
                    'htmlentities'
25
                )
26
            )
27
        );
28
    }
29
}
30