summaryrefslogtreecommitdiff
path: root/app/Controller/Subtask.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
commit8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch)
tree289222e21420b8d0092f06de097090f179202f6b /app/Controller/Subtask.php
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Controller/Subtask.php')
-rw-r--r--app/Controller/Subtask.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php
index 79b74896..4ef3e74e 100644
--- a/app/Controller/Subtask.php
+++ b/app/Controller/Subtask.php
@@ -66,11 +66,9 @@ class Subtask extends Base
list($valid, $errors) = $this->subtask->validateCreation($values);
if ($valid) {
-
if ($this->subtask->create($values)) {
$this->session->flash(t('Sub-task added successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to create your sub-task.'));
}
@@ -118,11 +116,9 @@ class Subtask extends Base
list($valid, $errors) = $this->subtask->validateModification($values);
if ($valid) {
-
if ($this->subtask->update($values)) {
$this->session->flash(t('Sub-task updated successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to update your sub-task.'));
}
@@ -161,8 +157,7 @@ class Subtask extends Base
if ($this->subtask->remove($subtask['id'])) {
$this->session->flash(t('Sub-task removed successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to remove this sub-task.'));
}
@@ -183,7 +178,6 @@ class Subtask extends Base
$this->subtask->toggleStatus($subtask['id']);
if ($redirect === 'board') {
-
$this->session['has_subtask_inprogress'] = $this->subtask->hasSubtaskInProgress($this->userSession->getId());
$this->response->html($this->template->render('board/tooltip_subtasks', array(