@@ -226,8 +226,9 @@ |
||
| 226 | 226 | $gmap = self::instance(); |
| 227 | 227 | if ($list) { |
| 228 | 228 | foreach ($list as $mappable) { |
| 229 | - if (self::ChooseToAddDataobject($mappable)) |
|
| 230 | - $gmap->addMarkerAsObject($mappable, $infowindowtemplateparams); |
|
| 229 | + if (self::ChooseToAddDataobject($mappable)) { |
|
| 230 | + $gmap->addMarkerAsObject($mappable, $infowindowtemplateparams); |
|
| 231 | + } |
|
| 231 | 232 | } |
| 232 | 233 | } |
| 233 | 234 | return $gmap; |
@@ -23,8 +23,10 @@ |
||
| 23 | 23 | if ((sizeof($children) < 2) || (sizeof($children) > 3) || |
| 24 | 24 | (!$children[0] instanceof FormField) || |
| 25 | 25 | (!$children[1] instanceof FormField) |
| 26 | - ) user_error('LatLongField argument 1 must be an array containing at least two FormField '. |
|
| 26 | + ) { |
|
| 27 | + user_error('LatLongField argument 1 must be an array containing at least two FormField '. |
|
| 27 | 28 | 'objects for Lat/Long values, respectively.', E_USER_ERROR); |
| 29 | + } |
|
| 28 | 30 | |
| 29 | 31 | parent::__construct($children); |
| 30 | 32 | |
@@ -31,7 +31,9 @@ |
||
| 31 | 31 | $form = (isset($args[3])) ? $args[3] : null; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - if($headingLevel) $this->headingLevel = $headingLevel; |
|
| 34 | + if($headingLevel) { |
|
| 35 | + $this->headingLevel = $headingLevel; |
|
| 36 | + } |
|
| 35 | 37 | $this->allowHTML = $allowHTML; |
| 36 | 38 | parent::__construct($name, $title, null, $allowHTML, $form); |
| 37 | 39 | } |