Crypt/Base: readability improvement

This commit is contained in:
terrafrost 2014-06-16 09:57:04 -05:00
parent d8b235141e
commit 0bafe1e6c6

View File

@ -573,10 +573,10 @@ class Crypt_Base
$count = isset($func_args[4]) ? $func_args[4] : 1000; $count = isset($func_args[4]) ? $func_args[4] : 1000;
// Keylength // Keylength
if (!isset($func_args[5])) { if (isset($func_args[5])) {
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
} else {
$dkLen = $func_args[5]; $dkLen = $func_args[5];
} else {
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
} }
switch (true) { switch (true) {