| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait NotFoundUrlHelpersTrait |
||
| 13 | { |
||
| 14 | public function provideInvalidUrls(): iterable |
||
| 15 | { |
||
| 16 | yield 'invalid shortcode' => ['invalid', null, 'No URL found with short code "invalid"']; |
||
| 17 | yield 'invalid shortcode without domain' => [ |
||
| 18 | 'abc123', |
||
| 19 | 'example.com', |
||
| 20 | 'No URL found with short code "abc123" for domain "example.com"', |
||
| 21 | ]; |
||
| 22 | yield 'invalid shortcode + domain' => [ |
||
| 23 | 'custom-with-domain', |
||
| 24 | 'example.com', |
||
| 25 | 'No URL found with short code "custom-with-domain" for domain "example.com"', |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function buildShortUrlPath(string $shortCode, ?string $domain, string $suffix = ''): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |