diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
commit | 8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch) | |
tree | 289222e21420b8d0092f06de097090f179202f6b /app/Core/Security.php | |
parent | b40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff) |
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Core/Security.php')
-rw-r--r-- | app/Core/Security.php | 5 |
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)); } |