| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | abstract class UrlUtils |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Gets the name of a resource (image, pdf, …) out of an $url. |
||
| 11 | * |
||
| 12 | * @param string $url |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public static function getResourceName(string $url): string |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Gets the URL without the resource (image, pdf, …). |
||
| 25 | * |
||
| 26 | * @param string $url |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public static function stripResourceName(string $url): string |
||
| 37 |