getDefaultConfigData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 14

Duplication

Lines 23
Ratio 100 %

Importance

Changes 0
Metric Value
dl 23
loc 23
rs 9.0856
c 0
b 0
f 0
cc 1
eloc 14
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * NOTICE OF LICENSE
5
 *
6
 * This source file is subject to the GNU General Public License (GPL 3)
7
 * that is bundled with this package in the file LICENSE.txt
8
 *
9
 * DISCLAIMER
10
 *
11
 * Do not edit or add to this file if you wish to upgrade Payone to newer
12
 * versions in the future. If you wish to customize Payone for your
13
 * needs please refer to http://www.payone.de for more information.
14
 *
15
 * @category        Payone
16
 * @package         Payone_SessionStatus
17
 * @copyright       Copyright (c) 2012 <[email protected]> - www.noovias.com
18
 * @author          Matthias Walter <[email protected]>
19
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
 * @link            http://www.noovias.com
21
 */
22 View Code Duplication
class Payone_SessionStatus_Config extends Payone_Config_Abstract
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
23
{
24
    /**
25
     * @return array
26
     */
27
    public function getDefaultConfigData()
28
    {
29
        $defaultConfig = array(
30
            'default' => array(
31
                'validators' => array(
32
                    'Payone_SessionStatus_Validator_Ip',
33
                    'Payone_SessionStatus_Validator_DefaultParameters',
34
                ),
35
                'protocol' => array(
36
                    'filter' => array(
37
                        Payone_Protocol_Filter_MaskValue::FILTER_KEY => array(
38
                            'enabled' => 1,
39
                            'percent' => 100
40
                        ),
41
                        Payone_Protocol_Filter_MaskAllValue::FILTER_KEY => array(
42
                            'enabled' => 1
43
                        )
44
                    ),
45
                ),
46
            )
47
        );
48
        return $defaultConfig;
49
    }
50
51
}
52