aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-12-01 21:56:48 -0500
committerSteve Clay <steve@mrclay.org>2013-12-01 21:56:48 -0500
commit47f209929b1913a73b8051d35d5545d28a37dba7 (patch)
tree5a98553ac7bfd74a8486b0097578f1179be17db3
parent76b7a8f78975098a5cd09f794feb34d4f7a4ee76 (diff)
downloadelgg-47f209929b1913a73b8051d35d5545d28a37dba7.tar.gz
elgg-47f209929b1913a73b8051d35d5545d28a37dba7.tar.bz2
Code style fixes in ElggCrypto
-rw-r--r--engine/classes/ElggCrypto.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/classes/ElggCrypto.php b/engine/classes/ElggCrypto.php
index b6a8b2024..317d371e4 100644
--- a/engine/classes/ElggCrypto.php
+++ b/engine/classes/ElggCrypto.php
@@ -96,12 +96,12 @@ class ElggCrypto {
}
do {
- $bytes = ($total > $hash_len)? $hash_len : $total;
+ $bytes = ($total > $hash_len) ? $hash_len : $total;
$total -= $bytes;
//collect any entropy available from the PHP system and filesystem
$entropy = rand() . uniqid(mt_rand(), true) . $SSLstr;
- $entropy .= implode('', @fstat(@fopen( __FILE__, 'r')));
+ $entropy .= implode('', @fstat(@fopen(__FILE__, 'r')));
$entropy .= memory_get_usage() . getmypid();
$entropy .= serialize($_ENV) . serialize($_SERVER);
if (function_exists('posix_times')) {
@@ -113,7 +113,7 @@ class ElggCrypto {
if ($handle) {
$entropy .= @fread($handle, $bytes);
- } else {
+ } else {
// Measure the time that the operations will take on average
for ($i = 0; $i < 3; $i++) {
$c1 = microtime(true);
@@ -162,9 +162,9 @@ class ElggCrypto {
* Uses supplied character list for generating the new string.
* If no character list provided - uses Base64 URL character set.
*
- * @param int $length Desired length of the string
- * @param string|null $chars Characters to be chosen from randomly. If not given, the Base64 URL
- * charset will be used.
+ * @param int $length Desired length of the string
+ * @param string|null $chars Characters to be chosen from randomly. If not given, the Base64 URL
+ * charset will be used.
*
* @return string The random string
*