for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of SwiftMailer.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Utility Class allowing users to simply check expressions again Swift EmailValidatorBridge.
* @author Xavier De Cock <[email protected]>
class Swift_Validate
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @var Swift_EmailValidatorBridge
private static $_emailValidator = null;
* Checks if an e-mail address is valid.
* @param string $email
* @return bool
public static function email($email)
if (self::$_emailValidator === null) {
self::$_emailValidator = new Swift_EmailValidatorBridge();
}
return self::$_emailValidator->isValidWrapper($email);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.