@@ -17,15 +17,15 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | class NetAddressValidator extends Validator { |
| 19 | 19 | /** |
| 20 | - * @inheritdoc |
|
| 21 | - */ |
|
| 22 | - public function init() |
|
| 23 | - { |
|
| 24 | - parent::init(); |
|
| 25 | - if ($this->message === null) { |
|
| 26 | - $this->message = Yii::t('yii', "{attribute} is invalid."); |
|
| 27 | - } |
|
| 28 | - } |
|
| 20 | + * @inheritdoc |
|
| 21 | + */ |
|
| 22 | + public function init() |
|
| 23 | + { |
|
| 24 | + parent::init(); |
|
| 25 | + if ($this->message === null) { |
|
| 26 | + $this->message = Yii::t('yii', "{attribute} is invalid."); |
|
| 27 | + } |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | 30 | public function validateAttribute($model, $attribute) { |
| 31 | 31 | $string = $model->{$attribute}; |