| @@ -1,10 +1,10 @@ | ||
| 1 | -<?php | |
| 2 | -class Validation_Email extends Validation { | |
| 3 | - protected $message = "Error: %element% must contain an email address."; | |
| 4 | - | |
| 5 | - public function isValid($value) { | |
| 6 | - if($this->isNotApplicable($value) || filter_var($value, FILTER_VALIDATE_EMAIL)) | |
| 7 | - return true; | |
| 8 | - return false; | |
| 9 | - } | |
| 10 | -} | |
| 1 | +<?php | |
| 2 | +class Validation_Email extends Validation { | |
| 3 | + protected $message = "Error: %element% must contain an email address."; | |
| 4 | + | |
| 5 | + public function isValid($value) { | |
| 6 | + if($this->isNotApplicable($value) || filter_var($value, FILTER_VALIDATE_EMAIL)) | |
| 7 | + return true; | |
| 8 | + return false; | |
| 9 | + } | |
| 10 | +} | |