| 1 | <?php |
||
| 5 | class Url |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Appends params to the URL. |
||
| 9 | * |
||
| 10 | * @param string $url The URL that will receive the params. |
||
| 11 | * @param array $params The params to append to the URL. |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 4 | public static function addParamsToUrl($url, array $params = []) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Check for a "/" prefix and prepend it if not exists. |
||
| 25 | * |
||
| 26 | * @param string|null $path |
||
| 27 | * |
||
| 28 | * @return string|null |
||
| 29 | */ |
||
| 30 | 5 | public static function slashPrefix($path) |
|
| 34 | } |
||
| 35 |