@@ -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); |
@@ -248,7 +248,9 @@ |
||
248 | 248 | |
249 | 249 | // map config based on user input in Settings tab |
250 | 250 | $limit = Config::inst()->get('Locator_Controller', 'limit'); |
251 | - if ($limit < 1) $limit = -1; |
|
251 | + if ($limit < 1) { |
|
252 | + $limit = -1; |
|
253 | + } |
|
252 | 254 | $load = 'fullMapStart: true, storeLimit: ' . $limit . ', maxDistance: true,'; |
253 | 255 | |
254 | 256 | $listTemplatePath = Config::inst()->get('Locator_Controller', 'list_template_path'); |