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

Config   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAvailableFormats() 0 3 1
A getEscapers() 0 10 1
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