Permalink
Browse files

Minor update to be explicit about default value of a variable

  • Loading branch information...
1 parent c729b73 commit 7078e8bfee77738dede3acc38a1c8c6e66b9a4f5 @mehlah mehlah committed Dec 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 security/Password.php
View
@@ -173,7 +173,7 @@ public static function salt($type = null, $count = null) {
* Defaults to `10`. Can be `4` to `31`.
* @return string The Blowfish salt.
*/
- protected static function _genSaltBf($count) {
+ protected static function _genSaltBf($count = null) {
$count = (integer) $count;
$count = ($count < 4 || $count > 31) ? static::BF : $count;
@@ -214,7 +214,7 @@ protected static function _genSaltBf($count) {
* ensure we don't use a weak DES key.
* @return string The XDES salt.
*/
- protected static function _genSaltXDES($count) {
+ protected static function _genSaltXDES($count = null) {
$count = (integer) $count;
$count = ($count < 1 || $count > 24) ? static::XDES : $count;

0 comments on commit 7078e8b

Please sign in to comment.