| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function run(array $salesOrderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data) |
||
| 27 | { |
||
| 28 | $amazonpayCallTransfers = $this->groupSalesOrderItemsByAuthId($salesOrderItems); |
||
| 29 | |||
| 30 | foreach ($amazonpayCallTransfers as $amazonpayCallTransfer) { |
||
| 31 | $amazonpayCallTransfer->setRequestedAmount( |
||
| 32 | $this->getRequestedAmountByOrderAndItems($orderEntity, $amazonpayCallTransfer->getItems()) |
||
| 33 | ); |
||
| 34 | |||
| 35 | if ($amazonpayCallTransfer->getAmazonpayPayment()->getStatus() |
||
| 36 | === AmazonPayConfig::STATUS_PAYMENT_METHOD_CHANGED |
||
| 37 | ) { |
||
| 38 | $this->getFacade()->reauthorizeSuspendedOrder($amazonpayCallTransfer); |
||
| 39 | } |
||
| 40 | |||
| 41 | $this->getFacade()->captureOrder($amazonpayCallTransfer); |
||
| 42 | } |
||
| 43 | |||
| 44 | return []; |
||
| 45 | } |
||
| 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