Fix PHPAnalyzer issues
This commit is contained in:
@@ -17,11 +17,13 @@ use Symfony\Component\EventDispatcher\Event;
|
|||||||
* @package controller
|
* @package controller
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*
|
*
|
||||||
|
* @property \Core\Helper $helper
|
||||||
* @property \Core\Session $session
|
* @property \Core\Session $session
|
||||||
* @property \Core\Template $template
|
* @property \Core\Template $template
|
||||||
* @property \Core\Paginator $paginator
|
* @property \Core\Paginator $paginator
|
||||||
* @property \Integration\GithubWebhook $githubWebhook
|
* @property \Integration\GithubWebhook $githubWebhook
|
||||||
* @property \Integration\GitlabWebhook $gitlabWebhook
|
* @property \Integration\GitlabWebhook $gitlabWebhook
|
||||||
|
* @property \Integration\BitbucketWebhook $bitbucketWebhook
|
||||||
* @property \Model\Acl $acl
|
* @property \Model\Acl $acl
|
||||||
* @property \Model\Authentication $authentication
|
* @property \Model\Authentication $authentication
|
||||||
* @property \Model\Action $action
|
* @property \Model\Action $action
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class ProjectActivity extends Base
|
|||||||
*/
|
*/
|
||||||
public function getProject($project_id, $limit = 50, $start = null, $end = null)
|
public function getProject($project_id, $limit = 50, $start = null, $end = null)
|
||||||
{
|
{
|
||||||
return $this->getProjects(array($project_id), $limit, $start = null, $end = null);
|
return $this->getProjects(array($project_id), $limit, $start, $end);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -91,15 +91,15 @@ class ProjectActivity extends Base
|
|||||||
->join(User::TABLE, 'id', 'creator_id')
|
->join(User::TABLE, 'id', 'creator_id')
|
||||||
->desc(self::TABLE.'.id')
|
->desc(self::TABLE.'.id')
|
||||||
->limit($limit);
|
->limit($limit);
|
||||||
|
|
||||||
if(!is_null($start)){
|
if(!is_null($start)){
|
||||||
$query->gte('date_creation', $start);
|
$query->gte('date_creation', $start);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_null($end)){
|
if(!is_null($end)){
|
||||||
$query->lte('date_creation', $end);
|
$query->lte('date_creation', $end);
|
||||||
}
|
}
|
||||||
|
|
||||||
$events = $query->findAll();
|
$events = $query->findAll();
|
||||||
|
|
||||||
foreach ($events as &$event) {
|
foreach ($events as &$event) {
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ class ProjectPermission extends Base
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param integer $user_id User id
|
* @param integer $user_id User id
|
||||||
* @return []integer
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getMemberProjectIds($user_id)
|
public function getMemberProjectIds($user_id)
|
||||||
{
|
{
|
||||||
@@ -342,7 +342,7 @@ class ProjectPermission extends Base
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param integer $user_id User id
|
* @param integer $user_id User id
|
||||||
* @return []integer
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getActiveMemberProjectIds($user_id)
|
public function getActiveMemberProjectIds($user_id)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ use Pimple\Container;
|
|||||||
* @package subscriber
|
* @package subscriber
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*
|
*
|
||||||
|
* @property \Model\Board $board
|
||||||
* @property \Model\Config $config
|
* @property \Model\Config $config
|
||||||
* @property \Model\Comment $comment
|
* @property \Model\Comment $comment
|
||||||
* @property \Model\LastLogin $lastLogin
|
* @property \Model\LastLogin $lastLogin
|
||||||
|
|||||||
Reference in New Issue
Block a user