diff options
| author | 2022-01-09 18:21:40 +0100 | |
|---|---|---|
| committer | 2022-01-09 18:21:40 +0100 | |
| commit | 4e2dff4591bb2062311c1d5bfcdca3ade2a76d16 (patch) | |
| tree | a876374a709f04f919b35ae8e1e53774a0aca39c /lib/Minz/Url.php | |
| parent | 9dbbe924c5e54b5dbe486873a9b31a28127c8e62 (diff) | |
Add spell checking with typos (#4138)
* Add spell checking with typos
Implement https://github.com/FreshRSS/FreshRSS/pull/4134#issuecomment-1008027558
* GitHub Actions attempt
* Quiet wget
* Makefile
Diffstat (limited to 'lib/Minz/Url.php')
| -rw-r--r-- | lib/Minz/Url.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Minz/Url.php b/lib/Minz/Url.php index 0bbf28b0d..06390c4c6 100644 --- a/lib/Minz/Url.php +++ b/lib/Minz/Url.php @@ -1,21 +1,21 @@ <?php /** - * La classe Url permet de gérer les URL à travers MINZ + * The Minz_Url class handles URLs across the MINZ framework */ class Minz_Url { /** - * Affiche une Url formatée - * @param string|array<string,string|array<string,mixed>> $url l'url à formater définie comme un tableau : + * Display a formatted URL + * @param string|array<string,string|array<string,mixed>> $url The URL to format, defined as an array: * $url['c'] = controller * $url['a'] = action - * $url['params'] = tableau des paramètres supplémentaires - * ou comme une chaîne de caractère - * @param string $encodage pour indiquer comment encoder les & (& ou & pour html) + * $url['params'] = array of additional parameters + * or as a string + * @param string $encoding how to encode & (& ou & pour html) * @param bool|string $absolute - * @return string url formatée + * @return string Formatted URL */ - public static function display ($url = array (), $encodage = 'html', $absolute = false) { + public static function display ($url = array (), $encoding = 'html', $absolute = false) { $isArray = is_array($url); if ($isArray) { @@ -44,8 +44,8 @@ class Minz_Url { } if ($isArray) { - $url_string .= '/' . self::printUri($url, $encodage); - } elseif ($encodage === 'html') { + $url_string .= '/' . self::printUri($url, $encoding); + } elseif ($encoding === 'html') { $url_string = Minz_Helper::htmlspecialchars_utf8($url_string . $url); } else { $url_string .= $url; |
