| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 18 | public static function shippingMethodNotFound(string $id, ?\Throwable $e = null): self |
||
| 19 | { |
||
| 20 | if (!Feature::isActive('v6.6.0.0')) { |
||
| 21 | return new ShippingMethodNotFoundException($id, $e); |
||
| 22 | } |
||
| 23 | |||
| 24 | return new self( |
||
| 25 | Response::HTTP_BAD_REQUEST, |
||
| 26 | self::SHIPPING_METHOD_NOT_FOUND, |
||
| 27 | 'Shipping method with id "{{ shippingMethodId }}" not found.', |
||
| 28 | ['shippingMethodId' => $id], |
||
| 29 | $e |
||
| 30 | ); |
||
| 44 |