summaryrefslogtreecommitdiff
path: root/app/Model/Swimlane.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/Model/Swimlane.php
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Model/Swimlane.php')
-rw-r--r--app/Model/Swimlane.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Model/Swimlane.php b/app/Model/Swimlane.php
index 1aa19fee..df44985a 100644
--- a/app/Model/Swimlane.php
+++ b/app/Model/Swimlane.php
@@ -142,8 +142,7 @@ class Swimlane extends Base
if ($status == self::ACTIVE) {
$query->asc('position');
- }
- else {
+ } else {
$query->asc('name');
}
@@ -172,7 +171,6 @@ class Swimlane extends Base
->findOneColumn('default_swimlane');
if ($default_swimlane) {
-
if ($default_swimlane === 'Default swimlane') {
$default_swimlane = t($default_swimlane);
}
@@ -396,7 +394,6 @@ class Swimlane extends Base
$positions = array_flip($swimlanes);
if (isset($swimlanes[$swimlane_id]) && $swimlanes[$swimlane_id] < count($swimlanes)) {
-
$position = ++$swimlanes[$swimlane_id];
$swimlanes[$positions[$position]]--;
@@ -430,7 +427,6 @@ class Swimlane extends Base
$positions = array_flip($swimlanes);
if (isset($swimlanes[$swimlane_id]) && $swimlanes[$swimlane_id] > 1) {
-
$position = --$swimlanes[$swimlane_id];
$swimlanes[$positions[$position]]++;
@@ -459,7 +455,6 @@ class Swimlane extends Base
$swimlanes = $this->getAll($project_from);
foreach ($swimlanes as $swimlane) {
-
unset($swimlane['id']);
$swimlane['project_id'] = $project_to;