Passed
Push — master ( 1e7188...a76082 )
by Mark
02:08
created
admin/purge.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function getMenuIcon(): string
40 40
     {
41 41
         $plugin = $this->getPluginName();
42
-        return DOKU_PLUGIN . $plugin . '/admin/purge.svg';
42
+        return DOKU_PLUGIN.$plugin.'/admin/purge.svg';
43 43
     }
44 44
 
45 45
     /**
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
             return;
54 54
         }
55 55
         if (isset($_REQUEST['purgetiles'])) {
56
-            $path = $conf['cachedir'] . '/olmaptiles';
56
+            $path = $conf['cachedir'].'/olmaptiles';
57 57
             if ($this->rrmdir($path)) {
58 58
                 msg($this->getLang('admin_purged_tiles'), 0);
59 59
             }
60 60
         }
61 61
         if (isset($_REQUEST['purgemaps'])) {
62
-            $path = $conf['mediadir'] . '/olmapmaps';
62
+            $path = $conf['mediadir'].'/olmapmaps';
63 63
             if ($this->rrmdir($path)) {
64 64
                 msg($this->getLang('admin_purged_maps'), 0);
65 65
             }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             '<input id="purgetiles" name="purgetiles" type="checkbox" value="1" class="checkbox" />'
107 107
         );
108 108
         $form->addElement(
109
-            '<label for="purgetiles" class="label">' . $this->getLang('admin_purge_tiles')
109
+            '<label for="purgetiles" class="label">'.$this->getLang('admin_purge_tiles')
110 110
             . '</label>'
111 111
         );
112 112
         $form->addElement('</p>');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $form->addElement('<p>');
117 117
         $form->addElement('<input id="purgemaps" name="purgemaps" type="checkbox" value="1" class="checkbox" />');
118 118
         $form->addElement(
119
-            '<label for="purgemaps" class="label">' . $this->getLang('admin_purge_maps') . '</label>'
119
+            '<label for="purgemaps" class="label">'.$this->getLang('admin_purge_maps').'</label>'
120 120
         );
121 121
         $form->addElement('</p>');
122 122
         $form->endFieldset();
Please login to merge, or discard this patch.
syntax/olmap.php 2 patches
Spacing   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@  discard block
 block discarded – undo
115 115
             if (!$this->getConf('bingAPIKey')) {
116 116
                 // in case there is no Bing api key we'll use OSM
117 117
                 $_firstimageID = $this->getStaticOSM($gmap, $overlay);
118
-                $imgUrl        .= $_firstimageID;
118
+                $imgUrl .= $_firstimageID;
119 119
                 if ($this->getConf('optionStaticMapGenerator') == 'remote') {
120 120
                     $imgUrl .= "&.png";
121 121
                 }
122 122
             } else {
123 123
                 // seems that Bing doesn't like the DW client, turn off caching
124 124
                 $_nocache = true;
125
-                $imgUrl   .= $this->getBing($gmap, $overlay) . "&.png";
125
+                $imgUrl .= $this->getBing($gmap, $overlay)."&.png";
126 126
             }
127 127
         } /* elseif (stripos ( $gmap ['baselyr'], 'mapquest' ) !== false) {
128 128
             // MapQuest
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
         } */ else {
141 141
             // default OSM
142 142
             $_firstimageID = $this->getStaticOSM($gmap, $overlay);
143
-            $imgUrl        .= $_firstimageID;
143
+            $imgUrl .= $_firstimageID;
144 144
             if ($this->getConf('optionStaticMapGenerator') == 'remote') {
145 145
                 $imgUrl .= "&.png";
146 146
             }
147 147
 }
148 148
 
149 149
         // append dw p_render specific params and render
150
-        $imgUrl .= "?" . str_replace("px", "", $gmap ['width']) . "x"
150
+        $imgUrl .= "?".str_replace("px", "", $gmap ['width'])."x"
151 151
             . str_replace("px", "", $gmap ['height']);
152 152
         $imgUrl .= "&nolink";
153 153
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     $imgUrl .= "&nocache";
157 157
 }
158 158
 
159
-        $imgUrl .= " |" . $gmap ['summary'] . " }}";
159
+        $imgUrl .= " |".$gmap ['summary']." }}";
160 160
 
161 161
         // dbglog($imgUrl,"complete image tags is:");
162 162
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         // create a javascript parameter string for the map
165 165
         $param = '';
166 166
 foreach ($gmap as $key => $val) {
167
-    $param .= is_numeric($val) ? "$key: $val, " : "$key: '" . hsc($val) . "', ";
167
+    $param .= is_numeric($val) ? "$key: $val, " : "$key: '".hsc($val)."', ";
168 168
 }
169 169
 if (!empty($param)) {
170 170
     $param = substr($param, 0, -2);
@@ -191,12 +191,12 @@  discard block
 block discarded – undo
191 191
 
192 192
         $poitable .= '
193 193
                     <tr>
194
-                    <td class="rowId">' . $rowId . '</td>
195
-                    <td class="icon"><img src="' . DOKU_BASE . 'lib/plugins/openlayersmap/icons/' . $img . '" alt="'
196
-            . substr($img, 0, -4) . $this->getlang('alt_legend_poi') . '" /></td>
197
-                    <td class="lat" title="' . $this->getLang('olmapPOIlatTitle') . '">' . $lat . '</td>
198
-                    <td class="lon" title="' . $this->getLang('olmapPOIlonTitle') . '">' . $lon . '</td>
199
-                    <td class="txt">' . $text . '</td>
194
+                    <td class="rowId">' . $rowId.'</td>
195
+                    <td class="icon"><img src="' . DOKU_BASE.'lib/plugins/openlayersmap/icons/'.$img.'" alt="'
196
+            . substr($img, 0, -4).$this->getlang('alt_legend_poi').'" /></td>
197
+                    <td class="lat" title="' . $this->getLang('olmapPOIlatTitle').'">'.$lat.'</td>
198
+                    <td class="lon" title="' . $this->getLang('olmapPOIlonTitle').'">'.$lon.'</td>
199
+                    <td class="txt">' . $text.'</td>
200 200
                     </tr>';
201 201
     }
202 202
     $poi = substr($poi, 2);
@@ -206,9 +206,9 @@  discard block
 block discarded – undo
206 206
                     <tr>
207 207
                     <td class="rowId"><img src="' . DOKU_BASE
208 208
         . 'lib/plugins/openlayersmap/toolbar/kml_file.png" alt="KML file" /></td>
209
-                    <td class="icon"><img src="' . DOKU_BASE . 'lib/plugins/openlayersmap/toolbar/kml_line.png" alt="'
210
-        . $this->getlang('alt_legend_kml') . '" /></td>
211
-                    <td class="txt" colspan="3">KML track: ' . $this->getFileName($gmap ['kmlfile']) . '</td>
209
+                    <td class="icon"><img src="' . DOKU_BASE.'lib/plugins/openlayersmap/toolbar/kml_line.png" alt="'
210
+        . $this->getlang('alt_legend_kml').'" /></td>
211
+                    <td class="txt" colspan="3">KML track: ' . $this->getFileName($gmap ['kmlfile']).'</td>
212 212
                     </tr>';
213 213
 }
214 214
 if (!empty($gmap ['gpxfile'])) {
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
         . 'lib/plugins/openlayersmap/toolbar/gpx_file.png" alt="GPX file" /></td>
219 219
                     <td class="icon"><img src="' . DOKU_BASE
220 220
         . 'lib/plugins/openlayersmap/toolbar/gpx_line.png" alt="'
221
-        . $this->getlang('alt_legend_gpx') . '" /></td>
222
-                    <td class="txt" colspan="3">GPX track: ' . $this->getFileName($gmap ['gpxfile']) . '</td>
221
+        . $this->getlang('alt_legend_gpx').'" /></td>
222
+                    <td class="txt" colspan="3">GPX track: ' . $this->getFileName($gmap ['gpxfile']).'</td>
223 223
                     </tr>';
224 224
 }
225 225
 if (!empty($gmap ['geojsonfile'])) {
@@ -229,14 +229,14 @@  discard block
 block discarded – undo
229 229
         . 'lib/plugins/openlayersmap/toolbar/geojson_file.png" alt="GeoJSON file" /></td>
230 230
                     <td class="icon"><img src="' . DOKU_BASE
231 231
         . 'lib/plugins/openlayersmap/toolbar/geojson_line.png" alt="'
232
-        . $this->getlang('alt_legend_geojson') . '" /></td>
233
-                    <td class="txt" colspan="3">GeoJSON track: ' . $this->getFileName($gmap ['geojsonfile']) . '</td>
232
+        . $this->getlang('alt_legend_geojson').'" /></td>
233
+                    <td class="txt" colspan="3">GeoJSON track: ' . $this->getFileName($gmap ['geojsonfile']).'</td>
234 234
                     </tr>';
235 235
 }
236 236
 
237 237
         $autozoom = empty($gmap ['autozoom']) ? $this->getConf('autoZoomMap') : $gmap ['autozoom'];
238
-        $js       = "{mapOpts: {" . $param . ", displayformat: '" . $this->getConf('displayformat')
239
-            . "', autozoom: " . $autozoom . "}, poi: [$poi]};";
238
+        $js       = "{mapOpts: {".$param.", displayformat: '".$this->getConf('displayformat')
239
+            . "', autozoom: ".$autozoom."}, poi: [$poi]};";
240 240
         // unescape the json
241 241
         $poitable = stripslashes($poitable);
242 242
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         // parse match for instructions, break into key value pairs
258 258
         $gmap = $this->dflt;
259 259
         foreach ($gmap as $key => &$value) {
260
-            $defval = $this->getConf('default_' . $key);
260
+            $defval = $this->getConf('default_'.$key);
261 261
             if ($defval !== '') {
262 262
                 $value = $defval;
263 263
             }
@@ -359,29 +359,29 @@  discard block
 block discarded – undo
359 359
         // see: https://developers.google.com/maps/documentation/staticmaps/index#Viewports
360 360
         // http://maps.google.com/maps/api/staticmap?center=51.565690,5.456756&zoom=16&size=600x400&markers=icon:http://wild-water.nl/dokuwiki/lib/plugins/openlayersmap/icons/marker.png|label:1|51.565690,5.456756&markers=icon:http://wild-water.nl/dokuwiki/lib/plugins/openlayersmap/icons/marker-blue.png|51.566197,5.458966|label:2&markers=icon:http://wild-water.nl/dokuwiki/lib/plugins/openlayersmap/icons/parking.png|51.567177,5.457909|label:3&markers=icon:http://wild-water.nl/dokuwiki/lib/plugins/openlayersmap/icons/parking.png|51.566283,5.457330|label:4&markers=icon:http://wild-water.nl/dokuwiki/lib/plugins/openlayersmap/icons/parking.png|51.565630,5.457695|label:5&sensor=false&format=png&maptype=roadmap
361 361
         $imgUrl = "https://maps.googleapis.com/maps/api/staticmap?";
362
-        $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
362
+        $imgUrl .= "&size=".str_replace("px", "", $gmap ['width'])."x"
363 363
             . str_replace("px", "", $gmap ['height']);
364 364
         //if (!$this->getConf( 'autoZoomMap')) { // no need for center & zoom params }
365
-        $imgUrl .= "&center=" . $gmap ['lat'] . "," . $gmap ['lon'];
365
+        $imgUrl .= "&center=".$gmap ['lat'].",".$gmap ['lon'];
366 366
         // max is 21 (== building scale), but that's overkill..
367 367
         if ($gmap ['zoom'] > 17) {
368 368
             $imgUrl .= "&zoom=17";
369 369
         } else {
370
-            $imgUrl .= "&zoom=" . $gmap ['zoom'];
370
+            $imgUrl .= "&zoom=".$gmap ['zoom'];
371 371
         }
372 372
         if ($overlay !== []) {
373 373
             $rowId = 0;
374 374
             foreach ($overlay as $data) {
375 375
                 [$lat, $lon, $text, $angle, $opacity, $img] = $data;
376
-                $imgUrl .= "&markers=icon%3a" . $sUrl . "lib/plugins/openlayersmap/icons/" . $img . "%7c"
377
-                    . $lat . "," . $lon . "%7clabel%3a" . ++$rowId;
376
+                $imgUrl .= "&markers=icon%3a".$sUrl."lib/plugins/openlayersmap/icons/".$img."%7c"
377
+                    . $lat.",".$lon."%7clabel%3a".++$rowId;
378 378
             }
379 379
         }
380
-        $imgUrl .= "&format=png&maptype=" . $maptype;
380
+        $imgUrl .= "&format=png&maptype=".$maptype;
381 381
         global $conf;
382
-        $imgUrl .= "&language=" . $conf ['lang'];
382
+        $imgUrl .= "&language=".$conf ['lang'];
383 383
         if ($this->getConf('googleAPIkey')) {
384
-            $imgUrl .= "&key=" . $this->getConf('googleAPIkey');
384
+            $imgUrl .= "&key=".$this->getConf('googleAPIkey');
385 385
         }
386 386
         // dbglog($imgUrl,'syntax_plugin_openlayersmap_olmap::getGoogle: Google image url is:');
387 387
         return $imgUrl;
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
             if (($geophp = plugin_load('helper', 'geophp')) === null) {
477 477
                 dbglog($geophp, 'geophp plugin is not available for use.');
478 478
             }
479
-            $size = str_replace("px", "", $gmap ['width']) . "x"
479
+            $size = str_replace("px", "", $gmap ['width'])."x"
480 480
                 . str_replace("px", "", $gmap ['height']);
481 481
 
482 482
             $markers = [];
@@ -496,19 +496,19 @@  discard block
 block discarded – undo
496 496
                     break;
497 497
                 case 'transport':
498 498
                     $maptype = 'transport';
499
-                    $apikey  = '?apikey=' . $this->getConf('tfApiKey');
499
+                    $apikey  = '?apikey='.$this->getConf('tfApiKey');
500 500
                     break;
501 501
                 case 'landscape':
502 502
                     $maptype = 'landscape';
503
-                    $apikey  = '?apikey=' . $this->getConf('tfApiKey');
503
+                    $apikey  = '?apikey='.$this->getConf('tfApiKey');
504 504
                     break;
505 505
                 case 'outdoors':
506 506
                     $maptype = 'outdoors';
507
-                    $apikey  = '?apikey=' . $this->getConf('tfApiKey');
507
+                    $apikey  = '?apikey='.$this->getConf('tfApiKey');
508 508
                     break;
509 509
                 case 'cycle map':
510 510
                     $maptype = 'cycle';
511
-                    $apikey  = '?apikey=' . $this->getConf('tfApiKey');
511
+                    $apikey  = '?apikey='.$this->getConf('tfApiKey');
512 512
                     break;
513 513
                 case 'hike and bike map':
514 514
                     $maptype = 'hikeandbike';
@@ -545,25 +545,25 @@  discard block
 block discarded – undo
545 545
             //  ol-marker|47.921629720114,18.027343747285,ol-marker-gold|47.951071133739,19.257812497236,
546 546
             //  ol-marker-blue|47.180141361692,19.257812497236,ol-marker-green
547 547
             $imgUrl = "https://staticmap.openstreetmap.de/staticmap.php";
548
-            $imgUrl .= "?center=" . $gmap ['lat'] . "," . $gmap ['lon'];
549
-            $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
548
+            $imgUrl .= "?center=".$gmap ['lat'].",".$gmap ['lon'];
549
+            $imgUrl .= "&size=".str_replace("px", "", $gmap ['width'])."x"
550 550
                 . str_replace("px", "", $gmap ['height']);
551 551
 
552 552
             if ($gmap ['zoom'] > 16) {
553 553
                 // actually this could even be 18, but that seems overkill
554 554
                 $imgUrl .= "&zoom=16";
555 555
             } else {
556
-                $imgUrl .= "&zoom=" . $gmap ['zoom'];
556
+                $imgUrl .= "&zoom=".$gmap ['zoom'];
557 557
             }
558 558
 
559 559
             if ($overlay !== []) {
560
-                $rowId  = 0;
560
+                $rowId = 0;
561 561
                 $imgUrl .= "&markers=";
562 562
                 foreach ($overlay as $data) {
563 563
                     [$lat, $lon, $text, $angle, $opacity, $img] = $data;
564 564
                     $rowId++;
565 565
                     $iconStyle = "lightblue$rowId";
566
-                    $imgUrl    .= "$lat,$lon,$iconStyle%7c";
566
+                    $imgUrl .= "$lat,$lon,$iconStyle%7c";
567 567
                 }
568 568
                 $imgUrl = substr($imgUrl, 0, -3);
569 569
             }
@@ -598,13 +598,13 @@  discard block
 block discarded – undo
598 598
                 $maptype = 'Road';
599 599
                 break;
600 600
         }
601
-        $imgUrl = "https://dev.virtualearth.net/REST/v1/Imagery/Map/" . $maptype;// . "/";
601
+        $imgUrl = "https://dev.virtualearth.net/REST/v1/Imagery/Map/".$maptype; // . "/";
602 602
         if ($this->getConf('autoZoomMap')) {
603 603
             $bbox = $this->calcBBOX($overlay, $gmap ['lat'], $gmap ['lon']);
604 604
             //$imgUrl .= "?ma=" . $bbox ['minlat'] . "," . $bbox ['minlon'] . ","
605 605
             //          . $bbox ['maxlat'] . "," . $bbox ['maxlon'];
606
-            $imgUrl .= "?ma=" . $bbox ['minlat'] . "%2C" . $bbox ['minlon'] . "%2C" . $bbox ['maxlat']
607
-                . "%2C" . $bbox ['maxlon'];
606
+            $imgUrl .= "?ma=".$bbox ['minlat']."%2C".$bbox ['minlon']."%2C".$bbox ['maxlat']
607
+                . "%2C".$bbox ['maxlon'];
608 608
             $imgUrl .= "&dcl=1";
609 609
         }
610 610
         if (strpos($imgUrl, "?") === false)
@@ -612,9 +612,9 @@  discard block
 block discarded – undo
612 612
 
613 613
         //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . ","
614 614
         //          . str_replace ( "px", "", $gmap ['height'] );
615
-        $imgUrl .= "&ms=" . str_replace("px", "", $gmap ['width']) . "%2C"
615
+        $imgUrl .= "&ms=".str_replace("px", "", $gmap ['width'])."%2C"
616 616
             . str_replace("px", "", $gmap ['height']);
617
-        $imgUrl .= "&key=" . $this->getConf('bingAPIKey');
617
+        $imgUrl .= "&key=".$this->getConf('bingAPIKey');
618 618
         if ($overlay !== []) {
619 619
             $rowId = 0;
620 620
             foreach ($overlay as $data) {
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
         }
634 634
         global $conf;
635 635
         $imgUrl .= "&fmt=png";
636
-        $imgUrl .= "&c=" . $conf ['lang'];
636
+        $imgUrl .= "&c=".$conf ['lang'];
637 637
         return $imgUrl;
638 638
     }
639 639
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
             $latPos = "N";
680 680
         }
681 681
         $dms = $this->convertDDtoDMS(abs($decimaldegrees));
682
-        return hsc($dms . $latPos);
682
+        return hsc($dms.$latPos);
683 683
     }
684 684
 
685 685
     /**
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
         $secs = ($decimaldegrees - $dms) * 3600;
696 696
         $min  = floor($secs / 60);
697 697
         $sec  = round($secs - ($min * 60), 3);
698
-        $dms  .= 'º' . $min . '\'' . $sec . '"';
698
+        $dms .= 'º'.$min.'\''.$sec.'"';
699 699
         return $dms;
700 700
     }
701 701
 
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
             $lonPos = "E";
714 714
         }
715 715
         $dms = $this->convertDDtoDMS(abs($decimaldegrees));
716
-        return hsc($dms . $lonPos);
716
+        return hsc($dms.$lonPos);
717 717
     }
718 718
 
719 719
     /**
@@ -755,50 +755,50 @@  discard block
 block discarded – undo
755 755
             if (!$initialised) {
756 756
                 $initialised = true;
757 757
                 // render necessary script tags only once
758
-                $olscript = '<script defer="defer" src="' . DOKU_BASE . 'lib/plugins/openlayersmap/ol/ol.js"></script>
759
-<script defer="defer" src="' . DOKU_BASE . 'lib/plugins/openlayersmap/ol/ol-layerswitcher.js"></script>';
758
+                $olscript = '<script defer="defer" src="'.DOKU_BASE.'lib/plugins/openlayersmap/ol/ol.js"></script>
759
+<script defer="defer" src="' . DOKU_BASE.'lib/plugins/openlayersmap/ol/ol-layerswitcher.js"></script>';
760 760
 
761 761
                 $scriptEnable = '<script defer="defer" src="data:text/javascript;base64,';
762 762
                 $scriptSrc    = $olscript ? 'const olEnable=true;' : 'const olEnable=false;';
763
-                $scriptSrc    .= 'const osmEnable=' . ($osmEnable ? 'true' : 'false') . ';';
764
-                $scriptSrc    .= 'const stadiaEnable=' . ($stadiaEnable ? 'true' : 'false') . ';';
765
-                $scriptSrc    .= 'const bEnable=' . ($enableBing ? 'true' : 'false') . ';';
766
-                $scriptSrc    .= 'const bApiKey="' . $this->getConf('bingAPIKey') . '";';
767
-                $scriptSrc    .= 'const tfApiKey="' . $this->getConf('tfApiKey') . '";';
768
-                $scriptSrc    .= 'const gApiKey="' . $this->getConf('googleAPIkey') . '";';
763
+                $scriptSrc    .= 'const osmEnable='.($osmEnable ? 'true' : 'false').';';
764
+                $scriptSrc    .= 'const stadiaEnable='.($stadiaEnable ? 'true' : 'false').';';
765
+                $scriptSrc    .= 'const bEnable='.($enableBing ? 'true' : 'false').';';
766
+                $scriptSrc    .= 'const bApiKey="'.$this->getConf('bingAPIKey').'";';
767
+                $scriptSrc    .= 'const tfApiKey="'.$this->getConf('tfApiKey').'";';
768
+                $scriptSrc    .= 'const gApiKey="'.$this->getConf('googleAPIkey').'";';
769 769
                 $scriptSrc    .= 'olMapData = []; let olMaps = {}; let olMapOverlays = {};';
770 770
                 $scriptEnable .= base64_encode($scriptSrc);
771 771
                 $scriptEnable .= '"></script>';
772 772
             }
773 773
             $renderer->doc .= "$olscript\n$scriptEnable";
774
-            $renderer->doc .= '<div class="olMapHelp">' . $this->locale_xhtml("help") . '</div>';
774
+            $renderer->doc .= '<div class="olMapHelp">'.$this->locale_xhtml("help").'</div>';
775 775
             if ($this->getConf('enableA11y')) {
776
-                $renderer->doc .= '<div id="' . $mapid . '-static" class="olStaticMap">'
777
-                    . p_render($format, p_get_instructions($staticImgUrl), $info) . '</div>';
776
+                $renderer->doc .= '<div id="'.$mapid.'-static" class="olStaticMap">'
777
+                    . p_render($format, p_get_instructions($staticImgUrl), $info).'</div>';
778 778
             }
779
-            $renderer->doc .= '<div id="' . $mapid . '-clearer" class="clearer"><p>&nbsp;</p></div>';
779
+            $renderer->doc .= '<div id="'.$mapid.'-clearer" class="clearer"><p>&nbsp;</p></div>';
780 780
             if ($this->getConf('enableA11y')) {
781 781
                 // render a table of the POI for the print and a11y presentation, it is hidden using javascript
782 782
                 $renderer->doc .= '
783
-                <div id="' . $mapid . '-table-span" class="olPOItableSpan">
784
-                    <table id="' . $mapid . '-table" class="olPOItable">
785
-                    <caption class="olPOITblCaption">' . $this->getLang('olmapPOItitle') . '</caption>
783
+                <div id="' . $mapid.'-table-span" class="olPOItableSpan">
784
+                    <table id="' . $mapid.'-table" class="olPOItable">
785
+                    <caption class="olPOITblCaption">' . $this->getLang('olmapPOItitle').'</caption>
786 786
                     <thead class="olPOITblHeader">
787 787
                     <tr>
788 788
                     <th class="rowId" scope="col">id</th>
789
-                    <th class="icon" scope="col">' . $this->getLang('olmapPOIicon') . '</th>
790
-                    <th class="lat" scope="col" title="' . $this->getLang('olmapPOIlatTitle') . '">'
791
-                    . $this->getLang('olmapPOIlat') . '</th>
792
-                    <th class="lon" scope="col" title="' . $this->getLang('olmapPOIlonTitle') . '">'
793
-                    . $this->getLang('olmapPOIlon') . '</th>
794
-                    <th class="txt" scope="col">' . $this->getLang('olmapPOItxt') . '</th>
789
+                    <th class="icon" scope="col">' . $this->getLang('olmapPOIicon').'</th>
790
+                    <th class="lat" scope="col" title="' . $this->getLang('olmapPOIlatTitle').'">'
791
+                    . $this->getLang('olmapPOIlat').'</th>
792
+                    <th class="lon" scope="col" title="' . $this->getLang('olmapPOIlonTitle').'">'
793
+                    . $this->getLang('olmapPOIlon').'</th>
794
+                    <th class="txt" scope="col">' . $this->getLang('olmapPOItxt').'</th>
795 795
                     </tr>
796 796
                     </thead>';
797 797
                 if ($poitabledesc != '') {
798
-                    $renderer->doc .= '<tfoot class="olPOITblFooter"><tr><td colspan="5">' . $poitabledesc
798
+                    $renderer->doc .= '<tfoot class="olPOITblFooter"><tr><td colspan="5">'.$poitabledesc
799 799
                         . '</td></tr></tfoot>';
800 800
                 }
801
-                $renderer->doc .= '<tbody class="olPOITblBody">' . $poitable . '</tbody>
801
+                $renderer->doc .= '<tbody class="olPOITblBody">'.$poitable.'</tbody>
802 802
                     </table>
803 803
                 </div>';
804 804
                 $renderer->doc .= "\n";
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -607,8 +607,9 @@
 block discarded – undo
607 607
                 . "%2C" . $bbox ['maxlon'];
608 608
             $imgUrl .= "&dcl=1";
609 609
         }
610
-        if (strpos($imgUrl, "?") === false)
611
-            $imgUrl .= "?";
610
+        if (strpos($imgUrl, "?") === false) {
611
+                    $imgUrl .= "?";
612
+        }
612 613
 
613 614
         //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . ","
614 615
         //          . str_replace ( "px", "", $gmap ['height'] );
Please login to merge, or discard this patch.