Skip to content

Commit bfe611c

Browse files
committed
squash cs-fixer squawks
1 parent 3bb4c2b commit bfe611c

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

tests/Fixtures/ResetPasswordRequestRepositoryTestFixture.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,18 @@ public function __construct(EntityManagerInterface $manager = null)
3333
$this->manager = $manager;
3434
}
3535

36-
private function getEntityManager(): EntityManagerInterface
37-
{
38-
return $this->manager;
39-
}
40-
41-
private function createQueryBuilder($alias, $indexBy = null): QueryBuilder
42-
{
43-
return $this->manager->createQueryBuilder()
44-
->select($alias)
45-
->from(self::ENTITY, $alias, $indexBy)
46-
;
36+
public function createResetPasswordRequest(
37+
object $user,
38+
\DateTimeInterface $expiresAt,
39+
string $selector,
40+
string $hashedToken
41+
): ResetPasswordRequestInterface {
4742
}
4843

4944
public function findOneBy(array $criteria)
5045
{
5146
$persister = $this->manager->getUnitOfWork()->getEntityPersister(self::ENTITY);
47+
5248
return $persister->load($criteria);
5349
}
5450

@@ -59,11 +55,16 @@ public function findAll()
5955
return $persister->loadAll();
6056
}
6157

62-
public function createResetPasswordRequest(
63-
object $user,
64-
\DateTimeInterface $expiresAt,
65-
string $selector,
66-
string $hashedToken
67-
): ResetPasswordRequestInterface {
58+
private function getEntityManager(): EntityManagerInterface
59+
{
60+
return $this->manager;
61+
}
62+
63+
private function createQueryBuilder($alias, $indexBy = null): QueryBuilder
64+
{
65+
return $this->manager->createQueryBuilder()
66+
->select($alias)
67+
->from(self::ENTITY, $alias, $indexBy)
68+
;
6869
}
6970
}

tests/Fixtures/ResetPasswordUserRepositoryTestFixture.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function __construct(EntityManagerInterface $manager)
3030
public function findAll(): array
3131
{
3232
$persister = $this->manager->getUnitOfWork()->getEntityPersister(ResetPasswordUserTestFixture::class);
33+
3334
return $persister->loadAll();
3435
}
3536
}

tests/FunctionalTests/Persistence/ResetPasswordRequestRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class ResetPasswordRequestRepositoryTest extends TestCase
3838
private $repository;
3939

4040
/**
41-
* {@inheritDoc}
41+
* {@inheritdoc}
4242
*/
4343
protected function setUp(): void
4444
{

0 commit comments

Comments
 (0)