@@ -256,6 +256,10 @@ discard block |
||
256 | 256 | /* |
257 | 257 | Add a map layer to an existing instance |
258 | 258 | */ |
259 | + |
|
260 | + /** |
|
261 | + * @param Member $instance |
|
262 | + */ |
|
259 | 263 | private function addLayerToInstance(&$instance) { |
260 | 264 | // Create a layer |
261 | 265 | $kmlFile = new File(array('Name' => 'example.kml', 'Filename' => 'mappable/tests/kml/example.kml')); |
@@ -269,6 +273,9 @@ discard block |
||
269 | 273 | $layers->add($layer); |
270 | 274 | } |
271 | 275 | |
276 | + /** |
|
277 | + * @param Member $instance |
|
278 | + */ |
|
272 | 279 | private function addMapPinToInstance(&$instance) { |
273 | 280 | // Create a pin |
274 | 281 | $imageFile = new Image(array('Name' => 'mapicontest.png', 'Filename' => 'mappable/tests/images/mapicontest.png')); |
@@ -283,7 +283,7 @@ |
||
283 | 283 | $expected = array( |
284 | 284 | 'lat' => 13.8621125, |
285 | 285 | 'lon' => 100.5143528, |
286 | - 'geocoded' => true |
|
286 | + 'geocoded' => true |
|
287 | 287 | ); |
288 | 288 | $this->assertEquals($expected, $location); |
289 | 289 | } |
@@ -33,7 +33,7 @@ discard block |
||
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 |
||
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 |
||
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(); |