diff options
author | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
---|---|---|
committer | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
commit | a2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch) | |
tree | fbfc480352bc711bc03f12849824507e56b5034a /core/DataTable/Filter/AddSegmentByLabel.php | |
parent | b2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff) |
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/DataTable/Filter/AddSegmentByLabel.php')
-rw-r--r-- | core/DataTable/Filter/AddSegmentByLabel.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/DataTable/Filter/AddSegmentByLabel.php b/core/DataTable/Filter/AddSegmentByLabel.php index d13eef97c5..1eacd4f72f 100644 --- a/core/DataTable/Filter/AddSegmentByLabel.php +++ b/core/DataTable/Filter/AddSegmentByLabel.php @@ -64,19 +64,17 @@ class AddSegmentByLabel extends BaseFilter $segment = reset($this->segments); foreach ($table->getRowsWithoutSummaryRow() as $key => $row) { - $label = $row->getColumn('label'); if (!empty($label)) { $row->setMetadata('segment', $segment . '==' . urlencode($label)); } } - } else if (!empty($this->delimiter)) { + } elseif (!empty($this->delimiter)) { $numSegments = count($this->segments); $conditionAnd = ';'; foreach ($table->getRowsWithoutSummaryRow() as $key => $row) { - $label = $row->getColumn('label'); if (!empty($label)) { $parts = explode($this->delimiter, $label); |