| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 4 | public static function mercureNotConfigured(?Throwable $prev = null): self |
|
| 20 | { |
||
| 21 | 4 | $e = new self('This Shlink instance is not integrated with a mercure hub.', 1, $prev); |
|
| 22 | |||
| 23 | 4 | $e->detail = $e->getMessage(); |
|
| 24 | 4 | $e->title = self::TITLE; |
|
| 25 | 4 | $e->type = self::TYPE; |
|
| 26 | 4 | $e->status = StatusCodeInterface::STATUS_NOT_IMPLEMENTED; |
|
| 27 | |||
| 28 | 4 | return $e; |
|
| 29 | } |
||
| 31 |