| Conditions | 6 |
| Paths | 10 |
| Total Lines | 25 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function execute(OrderTransfer $orderTransfer) |
||
| 28 | { |
||
| 29 | $orderTransfer = parent::execute($orderTransfer); |
||
| 30 | |||
| 31 | if ($this->apiResponse->getHeader()->getIsSuccess()) { |
||
| 32 | if ($this->apiResponse->getCaptureDetails()->getCaptureStatus()->getIsPending()) { |
||
| 33 | return $orderTransfer; |
||
| 34 | } |
||
| 35 | |||
| 36 | if ($this->apiResponse->getCaptureDetails()->getCaptureStatus()->getIsDeclined()) { |
||
| 37 | $this->paymentEntity->setStatus(AmazonpayConstants::OMS_STATUS_CAPTURE_DECLINED); |
||
| 38 | } |
||
| 39 | |||
| 40 | if ($this->apiResponse->getCaptureDetails()->getCaptureStatus()->getIsCompleted()) { |
||
| 41 | $this->paymentEntity->setStatus(AmazonpayConstants::OMS_STATUS_CAPTURE_COMPLETED); |
||
| 42 | } |
||
| 43 | |||
| 44 | if ($this->apiResponse->getCaptureDetails()->getCaptureStatus()->getIsClosed()) { |
||
| 45 | $this->paymentEntity->setStatus(AmazonpayConstants::OMS_STATUS_CAPTURE_CLOSED); |
||
| 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