Permalink
Browse files

little bit more pretty code

  • Loading branch information...
1 parent fa4804a commit fc11134c7cbee162f893dfbe725805dccda592fc @juzna committed Mar 19, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 FormMacros.php
View
6 FormMacros.php
@@ -173,7 +173,11 @@ public static function inputValue($name, $modifiers = array()) {
public static function macroBeginDynamicContainer($content) {
list($name) = self::fetchNameAndModifiers($content);
- return '$dynamicContainers = Addons\Forms\FormMacros::getControl('.$name.')->getComponents(); Addons\Forms\FormMacros::beginContainer('.$name.'); foreach($dynamicContainers as $dynamicContainerName => $dynamicContainer): Addons\Forms\FormMacros::beginContainer($dynamicContainerName);';
+ return
+ '$dynamicContainers = Addons\Forms\FormMacros::getControl('.$name.')->getComponents();
+ Addons\Forms\FormMacros::beginContainer('.$name.');
+ foreach($dynamicContainers as $dynamicContainerName => $dynamicContainer):
+ Addons\Forms\FormMacros::beginContainer($dynamicContainerName);';
}
public static function macroEndDynamicContainer($content) {
return "Addons\Forms\FormMacros::endContainer(); endforeach; Addons\Forms\FormMacros::endContainer();";

0 comments on commit fc11134

Please sign in to comment.