@@ -74,7 +74,9 @@ |
||
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); |
@@ -262,7 +262,9 @@ |
||
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,' |