summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-19 20:58:44 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-19 20:58:44 -0400
commita2fd6525a0f627451380997e2859992b64c8181f (patch)
tree6b53833a5dde08db4d32259da271bbc310b998a7
parent91c1109b0562a5d6da15345fb5be44c57ca29076 (diff)
Fix some php doc
-rw-r--r--app/Console/ResetTwoFactorCommand.php6
-rw-r--r--app/Core/Cache/CacheInterface.php2
-rw-r--r--app/Core/Cache/FileCache.php2
3 files changed, 4 insertions, 6 deletions
diff --git a/app/Console/ResetTwoFactorCommand.php b/app/Console/ResetTwoFactorCommand.php
index a64206b6..4a99db66 100644
--- a/app/Console/ResetTwoFactorCommand.php
+++ b/app/Console/ResetTwoFactorCommand.php
@@ -23,16 +23,14 @@ class ResetTwoFactorCommand extends BaseCommand
if (empty($userId)) {
$output->writeln('<error>User not found</error>');
- return false;
+ return 1;
}
if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) {
$output->writeln('<error>Unable to update user profile</error>');
- return false;
+ return 1;
}
$output->writeln('<info>Two-factor authentication disabled</info>');
-
- return true;
}
}
diff --git a/app/Core/Cache/CacheInterface.php b/app/Core/Cache/CacheInterface.php
index 19bd6ef7..033732cf 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 d477a1f3..1e0a60ef 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)
{