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

OmnipayMerchant::prepareData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 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