| Conditions | 6 | 
| Paths | 6 | 
| Total Lines | 30 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 | public function run(array $salesOrderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data)  | 
            ||
| 22 |     { | 
            ||
| 23 | $amazonpayCallTransfers = $this->groupSalesOrderItemsByAuthId($salesOrderItems);  | 
            ||
| 24 | |||
| 25 | $wasSuccessful = false;  | 
            ||
| 26 | |||
| 27 |         foreach ($amazonpayCallTransfers as $amazonpayCallTransfer) { | 
            ||
| 28 | $amazonpayCallTransfer->setRequestedAmount(  | 
            ||
| 29 | $this->getRequestedAmountByOrderAndItems($orderEntity, $amazonpayCallTransfer->getItems())  | 
            ||
| 30 | );  | 
            ||
| 31 | $result = $this->getFacade()->captureOrder($amazonpayCallTransfer);  | 
            ||
| 32 | |||
| 33 |             if ($result->getAmazonpayPayment()->getResponseHeader()->getIsSuccess()) { | 
            ||
| 34 | $wasSuccessful = true;  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 |         if ($wasSuccessful) { | 
            ||
| 39 | $items = new ArrayObject();  | 
            ||
| 40 | |||
| 41 |             foreach ($orderEntity->getItems() as $salesOrderItem) { | 
            ||
| 42 |                 if ($salesOrderItem->getState()->getName() === AmazonpayConstants::OMS_STATUS_AUTH_OPEN) { | 
            ||
| 43 | $items[] = $salesOrderItem;  | 
            ||
| 44 | }  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | $this->setOrderItemsStatus($items, AmazonpayConstants::OMS_STATUS_AUTH_OPEN_NO_CANCEL);  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | return [];  | 
            ||
| 51 | }  | 
            ||
| 62 | 
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