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