Completed
Push — AUTOMATED_TESTING ( 33af86...424fb1 )
by Gordon
04:09
created
code/MapUtil.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,8 +226,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
code/LatLongField.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,8 +23,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
code/MapField.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.