Config   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 10
c 1
b 0
f 1
dl 0
loc 19
rs 10

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
    const ROOT = 'changelog';
11
    
12
    public function getAvailableFormats()
13
    {
14
        return array('sphinx', 'html', 'md', 'yml', 'rst', 'txt', 'slack', 'json');
15
    }
16
    
17
    public function getEscapers()
18
    {
19
        return array(
20
            'sphinx' => array(
21
                '\\\\' => '\\\\\\\\',
22
                '^\.\. ' => '\\.\\. '
23
            ),
24
            'html' => array(
25
                '*' => array(
26
                    'htmlentities'
27
                )
28
            )
29
        );
30
    }
31
}
32