Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
fix spaces for row class
Browse files Browse the repository at this point in the history
  • Loading branch information
Srgk committed Feb 16, 2017
1 parent 3daa49e commit 61ad844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwbBundle/Form/View/Helper/TwbBundleFormRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getRowClassFromElement(\Zend\Form\ElementInterface $oElement)
if (($sColumSize = $oElement->getOption('column-size')) && $oElement->getOption('twb-layout') !== TwbBundleForm::LAYOUT_HORIZONTAL
) {
$sColumSize = (is_array($sColumSize)) ? $sColumSize : array($sColumSize);
$sRowClass .= implode(' ', array_map(function($item) { return 'col-' . $item; }, $sColumSize));
$sRowClass .= implode('', array_map(function($item) { return ' col-' . $item; }, $sColumSize));
}

//Additional row class
Expand Down

0 comments on commit 61ad844

Please sign in to comment.