Filter refactoring

This commit is contained in:
Frederic Guillot
2016-04-09 22:42:17 -04:00
parent 42813d702d
commit 11858be4e8
101 changed files with 3235 additions and 2841 deletions

View File

@@ -2,6 +2,8 @@
namespace Kanboard\Model;
use PicoDb\Table;
/**
* Project activity model
*
@@ -133,12 +135,12 @@ class ProjectActivity extends Base
* Common function to return events
*
* @access public
* @param \PicoDb\Table $query PicoDb Query
* @param Table $query PicoDb Query
* @param integer $start Timestamp of earliest activity
* @param integer $end Timestamp of latest activity
* @return array
*/
private function getEvents(\PicoDb\Table $query, $start, $end)
private function getEvents(Table $query, $start, $end)
{
if (! is_null($start)) {
$query->gte('date_creation', $start);