Passed
Pull Request — master (#54)
by Mark
13:28
created
syntax/olmap.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -617,8 +617,9 @@
 block discarded – undo
617 617
                 . "%2C" . $bbox ['maxlon'];
618 618
             $imgUrl .= "&dcl=1";
619 619
         }
620
-        if(strpos($imgUrl, "?") === false)
621
-            $imgUrl .= "?";
620
+        if(strpos($imgUrl, "?") === false) {
621
+                    $imgUrl .= "?";
622
+        }
622 623
 
623 624
         //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . ","
624 625
         //          . str_replace ( "px", "", $gmap ['height'] );
Please login to merge, or discard this patch.
StaticMap.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -471,8 +471,9 @@
 block discarded – undo
471 471
      *          for better proxy handling...
472 472
      */
473 473
     public function fetchTile(string $url) {
474
-        if($this->useTileCache && ($cached = $this->checkTileCache($url)))
475
-            return $cached;
474
+        if($this->useTileCache && ($cached = $this->checkTileCache($url))) {
475
+                    return $cached;
476
+        }
476 477
 
477 478
         $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')';
478 479
         if(function_exists("curl_init")) {
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -331,17 +331,17 @@
 block discarded – undo
331 331
     public function serializeParams(): string {
332 332
         return implode(
333 333
             "&", array(
334
-                   $this->zoom,
335
-                   $this->lat,
336
-                   $this->lon,
337
-                   $this->width,
338
-                   $this->height,
339
-                   serialize($this->markers),
340
-                   $this->maptype,
341
-                   $this->kmlFileName,
342
-                   $this->gpxFileName,
343
-                   $this->geojsonFileName
344
-               )
334
+                    $this->zoom,
335
+                    $this->lat,
336
+                    $this->lon,
337
+                    $this->width,
338
+                    $this->height,
339
+                    serialize($this->markers),
340
+                    $this->maptype,
341
+                    $this->kmlFileName,
342
+                    $this->gpxFileName,
343
+                    $this->geojsonFileName
344
+                )
345 345
         );
346 346
     }
347 347
 
Please login to merge, or discard this patch.