Fix cosmetic issues

This commit is contained in:
Frederic Guillot 2015-07-18 18:35:20 -04:00
parent 1bce737243
commit 7d7692d273
3 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,7 @@ use Symfony\Component\Console\Command\Command;
* @property \Model\ProjectPermission $projectPermission
* @property \Model\ProjectAnalytic $projectAnalytic
* @property \Model\ProjectDailyColumnStats $projectDailyColumnStats
* @property \Model\ProjectDailyStats $projectDailyColumnStats
* @property \Model\ProjectDailyStats $projectDailyStats
* @property \Model\SubtaskExport $subtaskExport
* @property \Model\Task $task
* @property \Model\TaskExport $taskExport

View File

@ -117,7 +117,7 @@ class Action extends Base
if ($valid) {
if ($this->action->create($values)) {
if ($this->action->create($values) !== false) {
$this->session->flash(t('Your automatic action have been created successfully.'));
}
else {

View File

@ -37,7 +37,6 @@ class Notification extends Base
public function sendOverdueTaskNotifications()
{
$tasks = $this->taskFinder->getOverdueTasks();
$projects = array();
foreach ($this->groupByColumn($tasks, 'project_id') as $project_id => $project_tasks) {
@ -157,10 +156,9 @@ class Notification extends Base
*
* @access public
* @param array $user
* @param array $event_data
* @return boolean
*/
public function filterNone(array $user, array $event_data)
public function filterNone(array $user)
{
return $user['notifications_filter'] == self::FILTER_NONE;
}