Completed
Push — master ( 83571a...9e9b74 )
by Nic
30s
created
code/extensions/DistanceDataExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
     /**
6 6
      * @param SQLQuery $query
7 7
      */
8
-    public function augmentSQL(SQLQuery &$query)
8
+    public function augmentSQL(SQLQuery & $query)
9 9
     {
10 10
         if (Controller::curr()->getRequest()->getVar('Address')) { // on frontend
11 11
             $coords = GoogleGeocoding::address_to_point(Controller::curr()->getRequest()->getVar('Address'));
Please login to merge, or discard this patch.
code/pages/Locator.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         if ($locations) {
209 209
 
210 210
             Requirements::javascript('framework/thirdparty/jquery/jquery.js');
211
-            Requirements::javascript('https://maps.google.com/maps/api/js?key=' . $key);
211
+            Requirements::javascript('https://maps.google.com/maps/api/js?key='.$key);
212 212
             Requirements::javascript('locator/thirdparty/handlebars/handlebars-v1.3.0.js');
213 213
             Requirements::javascript('locator/thirdparty/jquery-store-locator/js/jquery.storelocator.js');
214 214
             Requirements::css('locator/css/map.css');
@@ -245,27 +245,27 @@  discard block
 block discarded – undo
245 245
             unset($vars['action_doFilterLocations']);
246 246
             $url = '';
247 247
             if (count($vars)) {
248
-                $url .= '?' . http_build_query($vars);
248
+                $url .= '?'.http_build_query($vars);
249 249
             }
250
-            $link = $this->Link() . 'xml.xml' . $url;
250
+            $link = $this->Link().'xml.xml'.$url;
251 251
 
252 252
             // init map
253 253
             Requirements::customScript("
254 254
                 $(function(){
255 255
                     $('#map-container').storeLocator({
256
-                        " . $load . "
257
-                        dataLocation: '" . $link . "',
258
-                        listTemplatePath: '" . $listTemplatePath . "',
259
-                        infowindowTemplatePath: '" . $infowindowTemplatePath . "',
256
+                        " . $load."
257
+                        dataLocation: '" . $link."',
258
+                        listTemplatePath: '" . $listTemplatePath."',
259
+                        infowindowTemplatePath: '" . $infowindowTemplatePath."',
260 260
                         originMarker: true,
261
-                        " . $modal . ',
262
-                        ' . $featured . ",
261
+                        " . $modal.',
262
+                        ' . $featured.",
263 263
                         slideMap: false,
264 264
                         zoomLevel: 0,
265 265
                         noForm: true,
266 266
                         distanceAlert: -1,
267
-                        " . $kilometer . ',
268
-                        ' . $defaultCoords . '
267
+                        " . $kilometer.',
268
+                        ' . $defaultCoords.'
269 269
                     });
270 270
                 });
271 271
             ');
Please login to merge, or discard this patch.