Add the @return types
This commit is contained in:
@@ -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)
|
||||
// {{{
|
||||
|
||||
Reference in New Issue
Block a user