From fe3bac28281dcea95728456c1cd4c7146154c4ed Mon Sep 17 00:00:00 2001 From: Vlad Jula-Nedelcu Date: Wed, 16 Mar 2016 00:02:18 +0200 Subject: [PATCH] Remove old, useless code --- EuVatValidator.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/EuVatValidator.php b/EuVatValidator.php index 4768568..a170839 100644 --- a/EuVatValidator.php +++ b/EuVatValidator.php @@ -48,10 +48,6 @@ public function init() */ public function validateAttribute($model, $attribute) { - if (!in_array($model->$attribute, ['USA', 'Web'])) { - $this->addError($model, $attribute, 'The country must be either "USA" or "Web".'); - } - /** @noinspection PhpUndefinedMethodInspection */ $rs = $this->client->checkVat(['countryCode' => $this->country_code, 'vatNumber' => $model->$attribute]); if (!$rs->valid) {