Completed
Push — master ( afd149...4a584e )
by Andrii
01:51
created

OmnipayMerchant   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareData() 0 7 1
1
<?php
2
3
/*
4
 * Generalization over Omnipay and Payum
5
 *
6
 * @link      https://github.com/hiqdev/php-merchant
7
 * @package   php-merchant
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\php\merchant\webmoney;
13
14
/**
15
 * WebMoney Omnipay Merchant class.
16
 */
17
class OmnipayMerchant extends \hiqdev\php\merchant\OmnipayMerchant
18
{
19 1
    public function prepareData(array $data)
20
    {
21 1
        return array_merge([
22 1
            'merchantPurse' => $data['purse'],
23 1
            'secretKey'     => $data['secret'],
24 1
        ], $data);
25
    }
26
}
27