Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public function execute($request) |
||
19 | { |
||
20 | RequestNotSupportedException::assertSupports($this, $request); |
||
21 | |||
22 | /** @var PaymentInterface $payment */ |
||
23 | $payment = $request->getSource(); |
||
24 | |||
25 | $details = ArrayObject::ensureArrayObject($payment->getDetails()); |
||
26 | |||
27 | $details['MerchantTradeNo'] = $payment->getNumber(); |
||
28 | $details['ReceiverEmail'] = $payment->getClientEmail(); |
||
29 | $details['GoodsAmount'] = $payment->getTotalAmount(); |
||
30 | $details['TradeDesc'] = $payment->getDescription(); |
||
31 | $details['Items'] = $payment->getItems(); |
||
|
|||
32 | |||
33 | $details['AllPayLogisticsID'] = $details['MerchantTradeNo']; |
||
34 | |||
35 | $request->setResult((array) $details); |
||
36 | } |
||
37 | |||
49 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.