| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function run(array $salesOrderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data) |
||
| 21 | { |
||
| 22 | $amazonpayCallTransfers = $this->groupSalesOrderItemsByAuthId($salesOrderItems); |
||
| 23 | |||
| 24 | foreach ($amazonpayCallTransfers as $amazonpayCallTransfer) { |
||
| 25 | $amazonpayCallTransfer->setRequestedAmount( |
||
| 26 | $this->getRequestedAmountByOrderAndItems($orderEntity, $amazonpayCallTransfer->getItems()) |
||
| 27 | ); |
||
| 28 | |||
| 29 | if ($amazonpayCallTransfer->getAmazonpayPayment()->getStatus() |
||
| 30 | === AmazonpayConstants::OMS_STATUS_PAYMENT_METHOD_CHANGED) { |
||
| 31 | $this->getFacade()->reauthorizeSuspendedOrder($amazonpayCallTransfer); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->getFacade()->captureOrder($amazonpayCallTransfer); |
||
| 35 | } |
||
| 36 | |||
| 37 | return []; |
||
| 38 | } |
||
| 49 |
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