Permalink
Browse files

Improve code style

  • Loading branch information...
1 parent 059757c commit 22f83b750802345888c8784fd1be8e3d2edbbadd @superdweebie superdweebie committed Feb 12, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/DoctrineMongoODMModule/Service/ConfigurationFactory.php
@@ -76,8 +76,7 @@ public function createService(ServiceLocatorInterface $serviceLocator)
$config->setMetadataDriverImpl($serviceLocator->get($options->getDriver()));
// metadataFactory, if set
- $factoryName = $options->getClassMetadataFactoryName();
- if (isset($factoryName)){
+ if ($factoryName = $options->getClassMetadataFactoryName()){
$config->setClassMetadataFactoryName($factoryName);
}

0 comments on commit 22f83b7

Please sign in to comment.