Skip to content

Commit

Permalink
CS fixes, removed redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
craig committed Jun 12, 2012
1 parent 9d594c1 commit 6207513
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/Doctrine/ODM/PHPCR/Mapping/Driver/YamlDriver.php
Expand Up @@ -92,15 +92,12 @@ public function loadMetadataForClass($className, ClassMetadata $class)
}
}
if (isset($element['id'])) {
if(is_array($element['id'])) {
if(!isset($element['id']['fieldName'])) {
if (is_array($element['id'])) {
if (!isset($element['id']['fieldName'])) {
throw new MappingException("Missing fieldName property for id field");
}
else {
$fieldName = $element['id']['fieldName'];
}
}
else {
$fieldName = $element['id']['fieldName'];
} else {
$fieldName = $element['id'];
}
$mapping = array('fieldName' => $fieldName, 'id' => true);
Expand Down

0 comments on commit 6207513

Please sign in to comment.