Fix some PHPAnalyzer issues
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Controller;
|
||||
|
||||
use Model\Project as ProjectModel;
|
||||
use Model\SubTask as SubTaskModel;
|
||||
use Helper;
|
||||
|
||||
@@ -57,6 +56,11 @@ class App extends Base
|
||||
* Get tasks pagination
|
||||
*
|
||||
* @access public
|
||||
* @param integer $user_id
|
||||
* @param string $paginate
|
||||
* @param integer $offset
|
||||
* @param string $order
|
||||
* @param string $direction
|
||||
*/
|
||||
private function getTaskPagination($user_id, $paginate, $offset, $order, $direction)
|
||||
{
|
||||
@@ -94,6 +98,11 @@ class App extends Base
|
||||
* Get subtasks pagination
|
||||
*
|
||||
* @access public
|
||||
* @param integer $user_id
|
||||
* @param string $paginate
|
||||
* @param integer $offset
|
||||
* @param string $order
|
||||
* @param string $direction
|
||||
*/
|
||||
private function getSubtaskPagination($user_id, $paginate, $offset, $order, $direction)
|
||||
{
|
||||
@@ -132,8 +141,13 @@ class App extends Base
|
||||
* Get projects pagination
|
||||
*
|
||||
* @access public
|
||||
* @param array $project_ids
|
||||
* @param string $paginate
|
||||
* @param integer $offset
|
||||
* @param string $order
|
||||
* @param string $direction
|
||||
*/
|
||||
private function getProjectPagination($project_ids, $paginate, $offset, $order, $direction)
|
||||
private function getProjectPagination(array $project_ids, $paginate, $offset, $order, $direction)
|
||||
{
|
||||
$limit = 5;
|
||||
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
namespace Controller;
|
||||
|
||||
use Model\Project as ProjectModel;
|
||||
use Model\User as UserModel;
|
||||
use Core\Security;
|
||||
|
||||
/**
|
||||
* Board controller
|
||||
*
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Controller;
|
||||
|
||||
use Model\Task as TaskModel;
|
||||
|
||||
/**
|
||||
* Project controller
|
||||
*
|
||||
@@ -249,7 +247,7 @@ class Project extends Base
|
||||
|
||||
if ($valid) {
|
||||
|
||||
if ($this->projectPermission->allowUser($values['project_id'], $values['user_id'], $values['is_owner'])) {
|
||||
if ($this->projectPermission->allowUser($values['project_id'], $values['user_id'])) {
|
||||
$this->session->flash(t('Project updated successfully.'));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user