for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule\User\Validation;
use Anomaly\UsersModule\User\Contract\UserRepositoryInterface;
/**
* Class ValidateEmail
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class ValidateEmail
{
* Handle the validation.
* @param UserRepositoryInterface $users
* @param $value
* @return bool
public function handle(UserRepositoryInterface $users, $value)
if (!$users->findByEmail($value)) {
return false;
}
return true;