Fix cosmetic issues and update api documentation
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use PicoDb\Database;
|
||||
|
||||
/**
|
||||
* Board model
|
||||
*
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class User extends Base
|
||||
*
|
||||
* @access public
|
||||
* @param string $username Username
|
||||
* @return array
|
||||
* @return integer
|
||||
*/
|
||||
public function getIdByUsername($username)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user