11<?php
22
3- /**
3+ /*
44 * This file is part of the Geocoder package.
55 * For the full copyright and license information, please view the LICENSE
66 * file that was distributed with this source code.
@@ -25,7 +25,7 @@ class Gpx implements Dumper
2525 */
2626 public function dump (Location $ location )
2727 {
28- $ gpx = sprintf (<<<GPX
28+ $ gpx = sprintf (<<<' GPX'
2929<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
3030<gpx
3131version="1.0"
@@ -38,7 +38,7 @@ public function dump(Location $location)
3838 , Geocoder::VERSION );
3939
4040 if (null !== $ bounds = $ location ->getBounds ()) {
41- $ gpx .= sprintf (<<<GPX
41+ $ gpx .= sprintf (<<<' GPX'
4242 <bounds minlat="%f" minlon="%f" maxlat="%f" maxlon="%f"/>
4343
4444GPX
@@ -52,7 +52,7 @@ public function dump(Location $location)
5252 $ lon = $ coordinates ->getLongitude ();
5353 }
5454
55- $ gpx .= sprintf (<<<GPX
55+ $ gpx .= sprintf (<<<' GPX'
5656 <wpt lat="%.7f" lon="%.7f">
5757 <name><![CDATA[%s]]></name>
5858 <type><![CDATA[Address]]></type>
@@ -61,7 +61,7 @@ public function dump(Location $location)
6161GPX
6262 , $ lat , $ lon , $ this ->formatName ($ location ));
6363
64- $ gpx .= <<<GPX
64+ $ gpx .= <<<' GPX'
6565</gpx>
6666GPX;
6767
@@ -75,7 +75,7 @@ public function dump(Location $location)
7575 */
7676 protected function formatName (Location $ address )
7777 {
78- $ name = [];
78+ $ name = [];
7979 $ array = $ address ->toArray ();
8080 $ attrs = [
8181 ['streetNumber ' ],
0 commit comments