Fix PHPAnalyzer issues

This commit is contained in:
Frederic Guillot 2015-02-14 16:22:26 -05:00
parent f7e4c3928a
commit 5fd4e290c5
4 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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)
{

View File

@ -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