Cleanup and minor fixes
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use Pimple\Container;
|
||||
|
||||
/**
|
||||
* Base model class
|
||||
*
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use PicoDb\Database;
|
||||
|
||||
/**
|
||||
* Project Daily Column Stats
|
||||
*
|
||||
@@ -32,7 +34,7 @@ class ProjectDailyColumnStats extends Base
|
||||
{
|
||||
$status = $this->config->get('cfd_include_closed_tasks') == 1 ? array(Task::STATUS_OPEN, Task::STATUS_CLOSED) : array(Task::STATUS_OPEN);
|
||||
|
||||
return $this->db->transaction(function ($db) use ($project_id, $date, $status) {
|
||||
return $this->db->transaction(function (Database $db) use ($project_id, $date, $status) {
|
||||
|
||||
$column_ids = $db->table(Board::TABLE)->eq('project_id', $project_id)->findAllByColumn('id');
|
||||
|
||||
|
||||
@@ -352,8 +352,6 @@ class Subtask extends Base
|
||||
/**
|
||||
* Change the status of subtask
|
||||
*
|
||||
* Todo -> In progress -> Done -> Todo -> etc...
|
||||
*
|
||||
* @access public
|
||||
* @param integer $subtask_id
|
||||
* @return bool
|
||||
|
||||
0
app/Model/TaskDuplication.php
Executable file → Normal file
0
app/Model/TaskDuplication.php
Executable file → Normal file
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use PicoDb\Database;
|
||||
use SimpleValidator\Validator;
|
||||
use SimpleValidator\Validators;
|
||||
use Kanboard\Core\Session;
|
||||
@@ -335,7 +336,7 @@ class User extends Base
|
||||
*/
|
||||
public function remove($user_id)
|
||||
{
|
||||
return $this->db->transaction(function ($db) use ($user_id) {
|
||||
return $this->db->transaction(function (Database $db) use ($user_id) {
|
||||
|
||||
// All assigned tasks are now unassigned (no foreign key)
|
||||
if (! $db->table(Task::TABLE)->eq('owner_id', $user_id)->update(array('owner_id' => 0))) {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use Kanboard\Core\Translator;
|
||||
|
||||
/**
|
||||
* User Session
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user