Completed
Push — AUTOMATED_TESTING ( b401db...19cb04 )
by Gordon
11:46
created
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.
tests/MapAPITest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 
134 134
 	public function testSetSize() {
135 135
 		$map = $this->getMap();
136
-		$map->setSize('432px','1234px');
136
+		$map->setSize('432px', '1234px');
137 137
 		$html = $map->forTemplate();
138 138
 		$this->assertContains('style="width:432px; height: 1234px;"', $html);
139 139
 	}
Please login to merge, or discard this patch.
tests/MappableDataTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	public function testGetRenderableMapSetNoMarkerValues() {
19 19
 		$instance = $this->getInstance();
20 20
 		$instance->MapPinEdited = true;
21
-		$html = $instance->getRenderableMap(300,800,2)->setDivId('testmap')->forTemplate()->getValue();
21
+		$html = $instance->getRenderableMap(300, 800, 2)->setDivId('testmap')->forTemplate()->getValue();
22 22
 
23 23
 
24 24
 		$expected = <<<HTML
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 		$instance->MapPinEdited = true;
57 57
 		$vals = array('TestKey' => ' TestKeyVal');
58 58
 		$instance->setMarkerTemplateValues($vals);
59
-		$html = $instance->getRenderableMap(300,800,2)->setDivId('testmap')->forTemplate()->getValue();
59
+		$html = $instance->getRenderableMap(300, 800, 2)->setDivId('testmap')->forTemplate()->getValue();
60 60
 		$expected = <<<HTML
61 61
 
62 62
 
Please login to merge, or discard this patch.