summaryrefslogtreecommitdiff
path: root/app/Controller/Swimlane.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Swimlane.php')
-rw-r--r--app/Controller/Swimlane.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/app/Controller/Swimlane.php b/app/Controller/Swimlane.php
index 69fdf3df..0b29f598 100644
--- a/app/Controller/Swimlane.php
+++ b/app/Controller/Swimlane.php
@@ -63,12 +63,10 @@ class Swimlane extends Base
list($valid, $errors) = $this->swimlane->validateCreation($values);
if ($valid) {
-
if ($this->swimlane->create($values)) {
$this->session->flash(t('Your swimlane have been created successfully.'));
$this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to create your swimlane.'));
}
}
@@ -86,15 +84,13 @@ class Swimlane extends Base
$project = $this->getProject();
$values = $this->request->getValues() + array('show_default_swimlane' => 0);
- list($valid,) = $this->swimlane->validateDefaultModification($values);
+ list($valid, ) = $this->swimlane->validateDefaultModification($values);
if ($valid) {
-
if ($this->swimlane->updateDefault($values)) {
$this->session->flash(t('The default swimlane have been updated successfully.'));
$this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to update this swimlane.'));
}
}
@@ -136,8 +132,7 @@ class Swimlane extends Base
if ($this->swimlane->update($values)) {
$this->session->flash(t('Swimlane updated successfully.'));
$this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to update this swimlane.'));
}
}