Skip to content

Commit

Permalink
Avoid a duplicate method call
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Mar 19, 2016
1 parent 89dd959 commit a731793
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Doctrine/RouteConditionMetadataListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
}

$meta = $eventArgs->getClassMetadata();

if (null === $meta->getReflectionClass()) {
return;
}

if ($meta->getReflectionClass()->getName() !== 'Symfony\Component\Routing\Route') {
$refl = $meta->getReflectionClass();
if (null !== $refl && 'Symfony\Component\Routing\Route' !== $refl->getName()) {
return;
}

Expand Down

0 comments on commit a731793

Please sign in to comment.