mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
Most changes was made by php-cs-fixer. Also removes unused `RecursiveTreeIterator` class.
10 lines
208 B
PHP
10 lines
208 B
PHP
<?php
|
|
namespace Respect\Validation\Rules;
|
|
|
|
class Email extends AbstractRule
|
|
{
|
|
public function validate($input)
|
|
{
|
|
return is_string($input) && filter_var($input, FILTER_VALIDATE_EMAIL);
|
|
}
|
|
}
|