diff options
| author | 2021-05-08 10:27:18 +0200 | |
|---|---|---|
| committer | 2021-05-08 10:27:18 +0200 | |
| commit | 607f7e725487ce0eb0339b288ce9e58036dad4a0 (patch) | |
| tree | 5143afbcdcf15e22b70a93e1f4744cc85eea8517 /lib/Minz/Request.php | |
| parent | 224b20edd16a6abd4879fe0e9e0f4c1608c9accf (diff) | |
Fix several comments syntaxes (#3615)
Mainly wrong `@return` types in comments
Diffstat (limited to 'lib/Minz/Request.php')
| -rw-r--r-- | lib/Minz/Request.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 0c0a0b6a0..614473dd4 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -133,7 +133,7 @@ class Minz_Request { /** * Try to guess the base URL from $_SERVER information * - * @return the base url (e.g. http://example.com/) + * @return string base url (e.g. http://example.com/) */ public static function guessBaseUrl() { $protocol = static::extractProtocol(); @@ -224,7 +224,7 @@ class Minz_Request { /** * Return the base_url from configuration and add a suffix if given. * - * @return the base_url with a suffix. + * @return string base_url with a suffix. */ public static function getBaseUrl() { $conf = Minz_Configuration::get('system'); @@ -239,7 +239,7 @@ class Minz_Request { * localhost address. * * @param $address the address to test, can be an IP or a URL. - * @return true if server is accessible, false otherwise. + * @return boolean true if server is accessible, false otherwise. * @todo improve test with a more valid technique (e.g. test with an external server?) */ public static function serverIsPublic($address) { @@ -363,7 +363,7 @@ class Minz_Request { * Permet de récupérer une variable de type $_GET * @param $param nom de la variable * @param $default valeur par défaut à attribuer à la variable - * @return $_GET[$param] + * @return string $_GET[$param] * $_GET si $param = false * $default si $_GET[$param] n'existe pas */ @@ -409,7 +409,7 @@ class Minz_Request { * Permet de récupérer une variable de type $_POST * @param $param nom de la variable * @param $default valeur par défaut à attribuer à la variable - * @return $_POST[$param] + * @return string $_POST[$param] * $_POST si $param = false * $default si $_POST[$param] n'existe pas */ |
