Browse Source

psr : fix pétouilles loupées par phpcbf

pull/34/head
b_b 7 months ago
parent
commit
d607d124e1
  1. 12
      inc/staticmap.php

12
inc/staticmap.php

@ -339,7 +339,8 @@ class staticMapGis
public function checkMapCache() {
$this->mapCacheID = md5($this->serializeParams());
$filename = $this->mapCacheIDToFilename();
if (file_exists($filename)) { return true;
if (file_exists($filename)) {
return true;
}
}
@ -367,7 +368,8 @@ class staticMapGis
}
public function fetchTile($url) {
if ($this->useTileCache && ($cached = $this->checkTileCache($url))) { return $cached;
if ($this->useTileCache && ($cached = $this->checkTileCache($url))) {
return $cached;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@ -390,11 +392,13 @@ class staticMapGis
}
public function makeMap() {
if (count($this->markers)) { $this->getBoundsZoom();
if (count($this->markers)) {
$this->getBoundsZoom();
}
$this->initCoords();
$this->createBaseMap();
if (count($this->markers)) { $this->placeMarkers();
if (count($this->markers)) {
$this->placeMarkers();
}
$this->copyrightNotice();
}

Loading…
Cancel
Save