Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function run(array $orderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data) |
||
32 | { |
||
33 | $refundTransfer = $this->getFactory()->getRefundFacade()->calculateRefund($orderItems, $orderEntity); |
||
34 | $orderTransfer = $this->getFactory()->getSalesFacade()->getOrderByIdSalesOrder($orderEntity->getIdSalesOrder()); |
||
35 | |||
36 | $payonePartialOperationTransfer = (new PayonePartialOperationRequestTransfer()) |
||
37 | ->setOrder($orderTransfer) |
||
38 | ->setRefund($refundTransfer); |
||
39 | |||
40 | foreach ($orderItems as $orderItem) { |
||
41 | $payonePartialOperationTransfer->addSalesOrderItemId($orderItem->getIdSalesOrderItem()); |
||
42 | } |
||
43 | |||
44 | $this->getFacade()->executePartialRefund($payonePartialOperationTransfer); |
||
45 | |||
46 | return []; |
||
47 | } |
||
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