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