| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function validate($validator) |
||
| 32 | { |
||
| 33 | $this->value = trim($this->value); |
||
| 34 | if (!$this->getAddressArray()) { |
||
| 35 | $validator->validationError( |
||
| 36 | $this->name, |
||
| 37 | _t('AddressFinderField.VALIDATION', "Please enter a valid address."), |
||
| 38 | "validation" |
||
| 39 | ); |
||
| 40 | return false; |
||
| 41 | } else { |
||
| 42 | return true; |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |