summaryrefslogtreecommitdiff
path: root/app/Controller/Board.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/Board.php
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Controller/Board.php')
-rw-r--r--app/Controller/Board.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/app/Controller/Board.php b/app/Controller/Board.php
index 06c9a2ff..2d75db89 100644
--- a/app/Controller/Board.php
+++ b/app/Controller/Board.php
@@ -239,12 +239,11 @@ class Board extends Base
{
$values = $this->request->getValues();
- list($valid,) = $this->taskValidator->validateAssigneeModification($values);
+ list($valid, ) = $this->taskValidator->validateAssigneeModification($values);
if ($valid && $this->taskModification->update($values)) {
$this->session->flash(t('Task updated successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to update your task.'));
}
@@ -277,12 +276,11 @@ class Board extends Base
{
$values = $this->request->getValues();
- list($valid,) = $this->taskValidator->validateCategoryModification($values);
+ list($valid, ) = $this->taskValidator->validateCategoryModification($values);
if ($valid && $this->taskModification->update($values)) {
$this->session->flash(t('Task updated successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to update your task.'));
}
@@ -365,8 +363,7 @@ class Board extends Base
if ($this->request->isAjax()) {
$this->response->html($this->renderBoard($project_id));
- }
- else {
+ } else {
$this->response->redirect($this->helper->url->to('board', 'show', array('project_id' => $project_id)));
}
}