summaryrefslogtreecommitdiff
path: root/app/Core/Security.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Security.php')
-rw-r--r--app/Core/Security.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Core/Security.php b/app/Core/Security.php
index 126de2fd..54207ee1 100644
--- a/app/Core/Security.php
+++ b/app/Core/Security.php
@@ -10,7 +10,7 @@ namespace Kanboard\Core;
*/
class Security
{
- /**
+ /**
* Generate a random token with different methods: openssl or /dev/urandom or fallback to uniqid()
*
* @static
@@ -21,8 +21,7 @@ class Security
{
if (function_exists('openssl_random_pseudo_bytes')) {
return bin2hex(\openssl_random_pseudo_bytes(30));
- }
- else if (ini_get('open_basedir') === '' && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
+ } elseif (ini_get('open_basedir') === '' && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
return hash('sha256', file_get_contents('/dev/urandom', false, null, 0, 30));
}