| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function refundPayment(SpyPaymentAmazonpay $paymentEntity) |
||
| 36 | { |
||
| 37 | /** @var \Orm\Zed\Sales\Persistence\SpySalesOrderItem[] $items */ |
||
| 38 | $items = []; |
||
| 39 | |||
| 40 | foreach ($paymentEntity->getSpyPaymentAmazonpaySalesOrderItems() as $amazonpaySalesOrderItem) { |
||
| 41 | $items[] = $amazonpaySalesOrderItem->getSpySalesOrderItem(); |
||
| 42 | } |
||
| 43 | |||
| 44 | if (count($items) > 0) { |
||
| 45 | $refundTransfer = $this->refundFacade->calculateRefund($items, $items[0]->getOrder()); |
||
| 46 | $this->refundFacade->saveRefund($refundTransfer); |
||
| 47 | } |
||
| 50 |
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