@@ -717,7 +717,7 @@ |
||
| 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'] |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | 'MapPinIcon' => 'Image' |
| 19 | 19 | ); |
| 20 | 20 | |
| 21 | - static $defaults = array ( |
|
| 21 | + static $defaults = array( |
|
| 22 | 22 | 'Lat' =>0, |
| 23 | 23 | 'Lon' => 0, |
| 24 | 24 | 'Zoom' => 4, |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | // add any KML map layers |
| 156 | 156 | if (Object::has_extension($this->owner->ClassName, 'MapLayerExtension')) { |
| 157 | - foreach($this->owner->MapLayers() as $layer) { |
|
| 157 | + foreach ($this->owner->MapLayers() as $layer) { |
|
| 158 | 158 | $map->addKML($layer->KmlFile()->getAbsoluteURL()); |
| 159 | 159 | // we have a layer, so turn on autozoom |
| 160 | 160 | $autozoom = true; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | public function testSetSize() { |
| 126 | 126 | $map = $this->getMap(); |
| 127 | - $map->setSize('432px','1234px'); |
|
| 127 | + $map->setSize('432px', '1234px'); |
|
| 128 | 128 | $html = $map->forTemplate(); |
| 129 | 129 | $this->assertContains('style="width:432px; height: 1234px;"', $html); |
| 130 | 130 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | public function testSetLatLongCenter() { |
| 194 | 194 | $map = $this->getMap(); |
| 195 | 195 | $map->setIncludeDownloadJavascript(true); |
| 196 | - $map->setLatLongCenter(-23.714,47.149); |
|
| 196 | + $map->setLatLongCenter(-23.714, 47.149); |
|
| 197 | 197 | $html = $map->forTemplate(); |
| 198 | 198 | echo $html; |
| 199 | 199 | $expected = "data-centre='{\"lat\":023.714,\"lng\":47.149}'"; |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | public function testGetRenderableMapSetNoMarkerValues() { |
| 13 | 13 | $instance = $this->getInstance(); |
| 14 | 14 | $instance->MapPinEdited = true; |
| 15 | - $html = $instance->getRenderableMap(300,800,2)->forTemplate()->getValue(); |
|
| 15 | + $html = $instance->getRenderableMap(300, 800, 2)->forTemplate()->getValue(); |
|
| 16 | 16 | echo $html; |
| 17 | 17 | $expected = <<<HTML |
| 18 | 18 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $instance->MapPinEdited = true; |
| 50 | 50 | $vals = array('TestKey' => ' TestKeyVal'); |
| 51 | 51 | $instance->setMarkerTemplateValues($vals); |
| 52 | - $html = $instance->getRenderableMap(300,800,2)->forTemplate()->getValue(); |
|
| 52 | + $html = $instance->getRenderableMap(300, 800, 2)->forTemplate()->getValue(); |
|
| 53 | 53 | echo $html; |
| 54 | 54 | $expected = <<<HTML |
| 55 | 55 | |