| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 17 | public function matchException(\Exception $e): ?\Exception |
||
| 18 | { |
||
| 19 | if (\preg_match('/SQLSTATE\[23000\]:.*1062 Duplicate.*shipping_method_price.uniq.shipping_method_quantity_start\'/', $e->getMessage())) { |
||
| 20 | return ShippingException::duplicateShippingMethodPrice($e); |
||
| 21 | } |
||
| 22 | |||
| 23 | return null; |
||
| 24 | } |
||
| 26 |