Add the @return types

This commit is contained in:
2022-07-27 10:26:43 +02:00
parent 89e26be943
commit ed8449d321
13 changed files with 30 additions and 31 deletions

View File

@@ -69,7 +69,7 @@ class Password
// }}}
/** Create a salt, based on openssl_random_pseudo_bytes function
* @return a string salt
* @return string a string salt
*/
public function salt ()
// {{{
@@ -165,7 +165,7 @@ class Password
* chars).
* A maximum of 20% for special chars in the size
* @param integer|null $nbChars The number of chars (12 by default)
* @return The random password
* @return string The random password
*/
static public function generateASCII ($nbChars = 12)
// {{{
@@ -194,7 +194,7 @@ class Password
/** Create a random password with $nbChars chars, Alphanumericals chars
* (without special chars)
* @param integer|null $nbChars The number of chars (12 by default)
* @return The random password
* @return string The random password
*/
static public function generateAlphanum ($nbChars = 12)
// {{{
@@ -219,7 +219,7 @@ class Password
/** Create a random password with $nbChars chars, Alphabeticals chars
* (without special chars, neither numbers)
* @param integer|null $nbChars The number of chars (12 by default)
* @return The random password
* @return string The random password
*/
static public function generateAlphabetical ($nbChars = 12)
// {{{