diff --git a/app/Console/ResetTwoFactorCommand.php b/app/Console/ResetTwoFactorCommand.php index a64206b65..4a99db669 100644 --- a/app/Console/ResetTwoFactorCommand.php +++ b/app/Console/ResetTwoFactorCommand.php @@ -23,16 +23,14 @@ class ResetTwoFactorCommand extends BaseCommand if (empty($userId)) { $output->writeln('User not found'); - return false; + return 1; } if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) { $output->writeln('Unable to update user profile'); - return false; + return 1; } $output->writeln('Two-factor authentication disabled'); - - return true; } } diff --git a/app/Core/Cache/CacheInterface.php b/app/Core/Cache/CacheInterface.php index 19bd6ef73..033732cf9 100644 --- a/app/Core/Cache/CacheInterface.php +++ b/app/Core/Cache/CacheInterface.php @@ -15,7 +15,7 @@ interface CacheInterface * * @access public * @param string $key - * @param string $value + * @param mixed $value */ public function set($key, $value); diff --git a/app/Core/Cache/FileCache.php b/app/Core/Cache/FileCache.php index d477a1f3a..1e0a60efc 100644 --- a/app/Core/Cache/FileCache.php +++ b/app/Core/Cache/FileCache.php @@ -17,7 +17,7 @@ class FileCache extends BaseCache * * @access public * @param string $key - * @param string $value + * @param mixed $value */ public function set($key, $value) {