Skip to content

Commit

Permalink
Fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Sep 25, 2018
1 parent 140fb6d commit 9e6bb0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DataCollector/DoctrineDataCollector.php
Expand Up @@ -58,13 +58,14 @@ public function collect(Request $request, Response $response, \Exception $except
],
];

/** @var \Doctrine\ORM\EntityManager $em */
foreach ($this->registry->getManagers() as $name => $em) {
$entities[$name] = [];
/** @var ClassMetadataFactory $factory */
$factory = $em->getMetadataFactory();
$validator = new SchemaValidator($em);

/** @var $class \Doctrine\ORM\Mapping\ClassMetadataInfo */
/** @var \Doctrine\ORM\Mapping\ClassMetadataInfo $class */
foreach ($factory->getLoadedMetadata() as $class) {
if (isset($entities[$name][$class->getName()])) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion DoctrineBundle.php
Expand Up @@ -67,7 +67,7 @@ public function boot()
$registry = $container->get('doctrine');

// Tries to auto-generate the proxy file
/** @var $em \Doctrine\ORM\EntityManager */
/** @var \Doctrine\ORM\EntityManager $em */
foreach ($registry->getManagers() as $em) {
if (! $em->getConfiguration()->getAutoGenerateProxyClasses()) {
continue;
Expand Down

0 comments on commit 9e6bb0b

Please sign in to comment.