apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -42,12 +42,12 @@ class SavedExportRepository implements SavedExportRepositoryInterface
return $this->repository->findAll();
}
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
public function findBy(array $criteria, array $orderBy = null, int $limit = null, int $offset = null): array
{
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
}
public function findByUser(User $user, ?array $orderBy = [], ?int $limit = null, ?int $offset = null): array
public function findByUser(User $user, ?array $orderBy = [], int $limit = null, int $offset = null): array
{
$qb = $this->repository->createQueryBuilder('se');
@@ -64,7 +64,7 @@ class SavedExportRepository implements SavedExportRepositoryInterface
}
foreach ($orderBy as $field => $order) {
$qb->addOrderBy('se.' . $field, $order);
$qb->addOrderBy('se.'.$field, $order);
}
return $qb->getQuery()->getResult();