From 0261c751cf539030f47756bc1ea1650123ed2312 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 20 Feb 2016 15:31:26 -0500 Subject: Fix cosmetic issues and update api documentation --- app/Model/Board.php | 2 -- app/Model/LastLogin.php | 6 +++--- app/Model/User.php | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'app/Model') diff --git a/app/Model/Board.php b/app/Model/Board.php index f677266f..c10be19f 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -2,8 +2,6 @@ namespace Kanboard\Model; -use PicoDb\Database; - /** * Board model * diff --git a/app/Model/LastLogin.php b/app/Model/LastLogin.php index a1734819..feb5f5a3 100644 --- a/app/Model/LastLogin.php +++ b/app/Model/LastLogin.php @@ -65,9 +65,9 @@ class LastLogin extends Base if (count($connections) >= self::NB_LOGINS) { $this->db->table(self::TABLE) - ->eq('user_id', $user_id) - ->notin('id', array_slice($connections, 0, self::NB_LOGINS - 1)) - ->remove(); + ->eq('user_id', $user_id) + ->notin('id', array_slice($connections, 0, self::NB_LOGINS - 1)) + ->remove(); } } diff --git a/app/Model/User.php b/app/Model/User.php index e2494c4c..2d87d35b 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -137,7 +137,7 @@ class User extends Base * * @access public * @param string $username Username - * @return array + * @return integer */ public function getIdByUsername($username) { -- cgit v1.2.3