Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Prieser authored and Jan Prieser committed Feb 16, 2016
1 parent 7f3abeb commit f162d22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Metadata/MetadataConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public function convert(ClassHierarchyMetadata $metadata)
$definition->setDeprecated(true, $classMetadata->deprecated);
}
if (null !== $classMetadata->lazy) {
if (!method_exists($definition, 'setLazy')) {
throw new \RuntimeException(sprintf('the "lazy" attribute is not available on your Symfony version.'));
}
$definition->setLazy($classMetadata->lazy);
if (!method_exists($definition, 'setLazy')) {
throw new \RuntimeException(sprintf('the "lazy" attribute is not available on your Symfony version.'));
}
$definition->setLazy($classMetadata->lazy);
}
if (null !== $classMetadata->factoryClass) {
$definition->setFactoryClass($classMetadata->factoryClass);
Expand Down

0 comments on commit f162d22

Please sign in to comment.