Skip to content

Commit ba8a12a

Browse files
committed
fixed CS
1 parent a42973e commit ba8a12a

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/Symfony/Bridge/Doctrine/Test/TestRepositoryFactory.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
final class TestRepositoryFactory implements RepositoryFactory
2323
{
2424
/**
25-
* The list of EntityRepository instances.
26-
*
2725
* @var ObjectRepository[]
2826
*/
2927
private $repositoryList = array();
@@ -42,11 +40,6 @@ public function getRepository(EntityManagerInterface $entityManager, $entityName
4240
return $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName);
4341
}
4442

45-
/**
46-
* @param EntityManagerInterface $entityManager
47-
* @param string $entityName
48-
* @param ObjectRepository $repository
49-
*/
5043
public function setRepository(EntityManagerInterface $entityManager, $entityName, ObjectRepository $repository)
5144
{
5245
$repositoryHash = $this->getRepositoryHash($entityManager, $entityName);
@@ -55,29 +48,17 @@ public function setRepository(EntityManagerInterface $entityManager, $entityName
5548
}
5649

5750
/**
58-
* Create a new repository instance for an entity class.
59-
*
60-
* @param EntityManagerInterface $entityManager The EntityManager instance.
61-
* @param string $entityName The name of the entity.
62-
*
6351
* @return ObjectRepository
6452
*/
6553
private function createRepository(EntityManagerInterface $entityManager, $entityName)
6654
{
6755
/* @var $metadata ClassMetadata */
6856
$metadata = $entityManager->getClassMetadata($entityName);
69-
$repositoryClassName = $metadata->customRepositoryClassName
70-
?: $entityManager->getConfiguration()->getDefaultRepositoryClassName();
57+
$repositoryClassName = $metadata->customRepositoryClassName ?: $entityManager->getConfiguration()->getDefaultRepositoryClassName();
7158

7259
return new $repositoryClassName($entityManager, $metadata);
7360
}
7461

75-
/**
76-
* @param EntityManagerInterface $entityManager
77-
* @param string $entityName
78-
*
79-
* @return string
80-
*/
8162
private function getRepositoryHash(EntityManagerInterface $entityManager, $entityName)
8263
{
8364
return $entityManager->getClassMetadata($entityName)->getName().spl_object_hash($entityManager);

0 commit comments

Comments
 (0)