| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 13 | public static function create(bool $olderDbExists, ?Throwable $prev = null): self |
|
| 15 | { |
||
| 16 | 13 | $e = new self( |
|
| 17 | 13 | 'An error occurred while updating geolocation database, and an older version could not be found', |
|
| 18 | 13 | 0, |
|
| 19 | $prev, |
||
| 20 | ); |
||
| 21 | 13 | $e->olderDbExists = $olderDbExists; |
|
| 22 | |||
| 23 | 13 | return $e; |
|
| 24 | } |
||
| 31 |