Completed
Push — master ( 32f9a3...71c606 )
by recca
02:39
created

AllInOne   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A CheckOutFeedback() 0 6 1
1
<?php
2
3
namespace PayumTW\Ecpay\Sdk;
4
5
use ECPay_AllInOne;
6
use ECPay_CheckOutFeedback;
7
8
class AllInOne extends ECPay_AllInOne
9
{
10
    use FormToArrayTrait;
11
12
    /**
13
     * 取得付款結果通知的方法.
14
     */
15
    public function CheckOutFeedback()
16
    {
17
        $params = func_get_arg(0);
18
19
        return ECPay_CheckOutFeedback::CheckOut($params, $this->HashKey, $this->HashIV, 0);
0 ignored issues
show
Unused Code introduced by
The call to ECPay_CheckOutFeedback::CheckOut() has too many arguments starting with 0.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
20
    }
21
}
22