Conditions | 6 |
Paths | 7 |
Total Lines | 25 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function execute(OrderTransfer $orderTransfer) |
||
28 | { |
||
29 | if (!$orderTransfer->getAmazonpayPayment()->getRefundDetails()->getRefundStatus()->getIsPending()) { |
||
30 | return $orderTransfer; |
||
31 | } |
||
32 | |||
33 | $orderTransfer = parent::execute($orderTransfer); |
||
34 | |||
35 | if ($this->apiResponse->getHeader()->getIsSuccess()) { |
||
36 | if ($this->apiResponse->getRefundDetails()->getRefundStatus()->getIsPending()) { |
||
37 | return $orderTransfer; |
||
38 | } |
||
39 | |||
40 | if ($this->apiResponse->getRefundDetails()->getRefundStatus()->getIsDeclined()) { |
||
41 | $this->paymentEntity->setStatus(AmazonpayConstants::OMS_STATUS_REFUND_DECLINED); |
||
42 | } |
||
43 | |||
44 | if ($this->apiResponse->getRefundDetails()->getRefundStatus()->getIsCompleted()) { |
||
45 | $this->paymentEntity->setStatus(AmazonpayConstants::OMS_STATUS_REFUND_COMPLETED); |
||
46 | } |
||
47 | |||
48 | $this->paymentEntity->save(); |
||
49 | } |
||
50 | |||
51 | return $orderTransfer; |
||
52 | } |
||
55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths