Permalink
Browse files

Fixing coding conventions

  • Loading branch information...
1 parent faea546 commit ba7628e224d7ebec035415688daa799ca0de06b0 @Ocramius committed Dec 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php
@@ -75,7 +75,8 @@ public function __construct(DocumentManager $dm)
*/
public function getMetadataFor($className)
{
- if ($metadata = parent::getMetadataFor($className)) {
+ $metadata = parent::getMetadataFor($className);
+ if ($metadata) {
return $metadata;
}
throw MappingException::classNotMapped($className);

0 comments on commit ba7628e

Please sign in to comment.