| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function getAvailableMethods(QuoteTransfer $quoteTransfer): ShipmentMethodsTransfer |
||
| 35 | { |
||
| 36 | if (method_exists($this->shipmentClient, 'getAvailableMethodsByShipment') === true) { |
||
| 37 | $shipmentMethodsCollectionTransfer = $this->shipmentClient->getAvailableMethodsByShipment($quoteTransfer); |
||
| 38 | |||
| 39 | if ($shipmentMethodsCollectionTransfer->getShipmentMethods()->count() > 1) { |
||
| 40 | throw new \RuntimeException('Split shipping is not supported'); |
||
| 41 | } |
||
| 42 | |||
| 43 | $shipmentMethodsTransfer = $shipmentMethodsCollectionTransfer->getShipmentMethods()->getIterator() |
||
| 44 | ->current(); |
||
| 45 | |||
| 46 | return $shipmentMethodsTransfer; |
||
| 47 | } |
||
| 48 | |||
| 49 | return $this->shipmentClient->getAvailableMethods($quoteTransfer); |
||
| 50 | } |
||
| 52 |
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