Fix some Scrutinizer issues

This commit is contained in:
Frédéric Guillot
2014-11-26 21:16:19 -05:00
parent 20b60bc628
commit 3ba8e06632
8 changed files with 16 additions and 16 deletions

View File

@@ -3,7 +3,7 @@
namespace Controller;
use Model\Project as ProjectModel;
use Model\SubTask;
use Model\SubTask as SubTaskModel;
use Helper;
/**
@@ -87,7 +87,7 @@ class App extends Base
*/
private function getSubtaskPagination($user_id, $paginate, $offset, $order, $direction)
{
$status = array(SubTask::STATUS_TODO, SubTask::STATUS_INPROGRESS);
$status = array(SubTaskModel::STATUS_TODO, SubTaskModel::STATUS_INPROGRESS);
$limit = 10;
if (! in_array($order, array('tasks.id', 'project_name', 'status', 'title'))) {