1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

Use null comparation instead of is_null()

This commit is contained in:
Jefersson Nathan 2014-07-30 16:54:24 -03:00
parent 089cca636e
commit 1b9f42ae67

View file

@ -86,13 +86,13 @@ class EntityManagerMock extends \Doctrine\ORM\EntityManager
public static function create($conn, \Doctrine\ORM\Configuration $config = null, public static function create($conn, \Doctrine\ORM\Configuration $config = null,
\Doctrine\Common\EventManager $eventManager = null) \Doctrine\Common\EventManager $eventManager = null)
{ {
if (is_null($config)) { if (null === $config) {
$config = new \Doctrine\ORM\Configuration(); $config = new \Doctrine\ORM\Configuration();
$config->setProxyDir(__DIR__ . '/../Proxies'); $config->setProxyDir(__DIR__ . '/../Proxies');
$config->setProxyNamespace('Doctrine\Tests\Proxies'); $config->setProxyNamespace('Doctrine\Tests\Proxies');
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver(array(), true)); $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver(array(), true));
} }
if (is_null($eventManager)) { if (null === $eventManager) {
$eventManager = new \Doctrine\Common\EventManager(); $eventManager = new \Doctrine\Common\EventManager();
} }