Skip to content

Commit

Permalink
Remove old, useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
elvenpath committed Mar 15, 2016
1 parent ce3c132 commit fe3bac2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions EuVatValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe3bac2

Please sign in to comment.