Completed
Push — AUTOMATED_TESTING ( 6591ac...6229f9 )
by Gordon
15:27
created
code/MapAPI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -717,7 +717,7 @@
 block discarded – undo
717 717
 							$this->latLongCenter : $this->geocoding($this->center);
718 718
 
719 719
 		// coordinates for centre depending on which method used
720
-		if (isset($geocodeCentre['geocoded'] )) {
720
+		if (isset($geocodeCentre['geocoded'])) {
721 721
 			$latlngCentre = array(
722 722
 				'lat' => $geocodeCentre['lat'],
723 723
 				'lng' => $geocodeCentre['lon']
Please login to merge, or discard this patch.
tests/MapAPITest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		$this->assertContains('data-useclusterer=1', $html);
34 34
 
35 35
 		$map = $this->getMap();
36
-		$map->setClusterer(true, 60,14);
36
+		$map->setClusterer(true, 60, 14);
37 37
 		$html = $map->forTemplate();
38 38
 		$this->assertContains('data-clusterergridsize=60', $html);
39 39
 		$this->assertContains('data-clusterermaxzoom=14', $html);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
 	public function testGetContent() {
334 334
 		$map = $this->getMap();
335
-		$filepath = 'file://' . Director::baseFolder()
335
+		$filepath = 'file://'.Director::baseFolder()
336 336
 				  . '/mappable/tests/kml/example.kml';
337 337
 		$content = $map->getContent($filepath);
338 338
 		$textHash = hash('ripemd160', $content);
@@ -467,14 +467,14 @@  discard block
 block discarded – undo
467 467
 	public function testAddLine() {
468 468
 		$map = $this->getMap();
469 469
 		$map->addLine(
470
-			array(13,101),
470
+			array(13, 101),
471 471
 			array(13.2, 101.4),
472 472
 			'#F32'
473 473
 		);
474 474
 
475 475
 		$map->addLine(
476 476
 			array(13.2, 101.4),
477
-			array(14.2,99.8)
477
+			array(14.2, 99.8)
478 478
 		);
479 479
 
480 480
 		$html = $map->forTemplate();
Please login to merge, or discard this patch.