mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-15 11:14:59 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -164,7 +164,7 @@ final readonly class UserRepository implements UserRepositoryInterface
|
||||
*
|
||||
* @return User[]
|
||||
*/
|
||||
public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null): array
|
||||
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array
|
||||
{
|
||||
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
|
||||
}
|
||||
@@ -172,7 +172,7 @@ final readonly class UserRepository implements UserRepositoryInterface
|
||||
/**
|
||||
* @return array|User[]
|
||||
*/
|
||||
public function findByActive(array $orderBy = null, int $limit = null, int $offset = null): array
|
||||
public function findByActive(?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
|
||||
{
|
||||
return $this->findBy(['enabled' => true], $orderBy, $limit, $offset);
|
||||
}
|
||||
@@ -182,7 +182,7 @@ final readonly class UserRepository implements UserRepositoryInterface
|
||||
*
|
||||
* @return array|User[]
|
||||
*/
|
||||
public function findByNotHavingAttribute(string $key, int $limit = null, int $offset = null): array
|
||||
public function findByNotHavingAttribute(string $key, ?int $limit = null, ?int $offset = null): array
|
||||
{
|
||||
$rsm = new ResultSetMappingBuilder($this->entityManager);
|
||||
$rsm->addRootEntityFromClassMetadata(User::class, 'u');
|
||||
@@ -200,7 +200,7 @@ final readonly class UserRepository implements UserRepositoryInterface
|
||||
return $this->entityManager->createNativeQuery($sql, $rsm)->setParameter(':key', $key)->getResult();
|
||||
}
|
||||
|
||||
public function findByUsernameOrEmail(string $pattern, ?array $orderBy = [], int $limit = null, int $offset = null): array
|
||||
public function findByUsernameOrEmail(string $pattern, ?array $orderBy = [], ?int $limit = null, ?int $offset = null): array
|
||||
{
|
||||
$qb = $this->queryByUsernameOrEmail($pattern);
|
||||
|
||||
@@ -221,7 +221,7 @@ final readonly class UserRepository implements UserRepositoryInterface
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
public function findOneBy(array $criteria, array $orderBy = null): ?User
|
||||
public function findOneBy(array $criteria, ?array $orderBy = null): ?User
|
||||
{
|
||||
return $this->repository->findOneBy($criteria, $orderBy);
|
||||
}
|
||||
|
Reference in New Issue
Block a user