Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class OrderMessageFactory implements OrderMessageFactoryInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @param \Generated\Shared\Transfer\AmazonpayCallTransfer $amazonpayCallTransfer |
||
17 | * |
||
18 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\Notification\AbstractNotificationMessage|null |
||
19 | */ |
||
20 | public function createFailedAuthMessage(AmazonpayCallTransfer $amazonpayCallTransfer) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param \Generated\Shared\Transfer\AmazonpayCallTransfer $amazonpayCallTransfer |
||
43 | * |
||
44 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\Notification\AbstractNotificationMessage |
||
45 | */ |
||
46 | protected function createOrderAuthFailedSoftDeclineMessage(AmazonpayCallTransfer $amazonpayCallTransfer) |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param \Generated\Shared\Transfer\AmazonpayCallTransfer $amazonpayCallTransfer |
||
53 | * |
||
54 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\Notification\AbstractNotificationMessage |
||
55 | */ |
||
56 | protected function createOrderAuthFailedHardDeclineMessage(AmazonpayCallTransfer $amazonpayCallTransfer) |
||
62 |
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. Please note the @ignore annotation hint above.