Completed
Push — master ( bcb0a1...30182a )
by Dmitry
02:38
created

OmnipayMerchant::prepareData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
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\interkassa;
13
14
/**
15
 * Interkassa 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
            'signKey'       => $data['secret'],
23 1
        ], $data);
24
    }
25
}
26