Completed
Push — 2.0 ( 45bb6e...496c9b )
by Nic
06:45
created
code/form/LocatorForm.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,9 @@
 block discarded – undo
74 74
     {
75 75
         $validator = parent::getValidator();
76 76
         if (empty($validator)) {
77
-            if (!$this->validator instanceof RequiredFields) $this->setValidator(RequiredFields::create('Address'));
77
+            if (!$this->validator instanceof RequiredFields) {
78
+                $this->setValidator(RequiredFields::create('Address'));
79
+            }
78 80
             $validator = $this->validator;
79 81
         }
80 82
         $this->extend('updateRequiredFields', $validator);
Please login to merge, or discard this patch.
code/pages/Locator.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,9 @@
 block discarded – undo
262 262
                 // map config based on user input in Settings tab
263 263
                 // AutoGeocode or Full Map
264 264
                 $limit = Config::inst()->get('Locator_Controller', 'limit');
265
-                if ($limit < 1) $limit = -1;
265
+                if ($limit < 1) {
266
+                    $limit = -1;
267
+                }
266 268
                 if ($this->data()->AutoGeocode) {
267 269
                     $load = $featuredInList || $defaultCoords != '' || $isChrome
268 270
                         ? 'autoGeocode: false, fullMapStart: true, storeLimit: ' . $limit . ', maxDistance: true,'
Please login to merge, or discard this patch.