| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class CloseOrderTransaction extends AbstractAmazonpayTransaction |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param \Generated\Shared\Transfer\AmazonpayCallTransfer $amazonPayCallTransfer |
||
| 17 | * |
||
| 18 | * @return \Generated\Shared\Transfer\AmazonpayCallTransfer |
||
| 19 | */ |
||
| 20 | public function execute(AmazonpayCallTransfer $amazonPayCallTransfer) |
||
| 21 | { |
||
| 22 | $amazonPayCallTransfer = parent::execute($amazonPayCallTransfer); |
||
| 23 | |||
| 24 | if (!$this->apiResponse->getResponseHeader()->getIsSuccess()) { |
||
| 25 | return $amazonPayCallTransfer; |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->paymentProcessor->updateStatus( |
||
| 29 | $amazonPayCallTransfer->getAmazonpayPayment()->getOrderReferenceId(), |
||
| 30 | AmazonPayConfig::STATUS_CLOSED |
||
| 31 | ); |
||
| 32 | |||
| 33 | return $amazonPayCallTransfer; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | protected function allowPartialProcessing() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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