update cs after php-cs-fixer upgrade

This commit is contained in:
2024-09-12 12:02:33 +02:00
parent 5d0b531820
commit f0f651edea
286 changed files with 374 additions and 374 deletions

View File

@@ -42,7 +42,7 @@ class ChillItemsPerPageTwig extends AbstractExtension
public function paginationRender(
Environment $env,
PaginatorInterface $paginator,
$template = '@ChillMain/Pagination/items_per_page.html.twig'
$template = '@ChillMain/Pagination/items_per_page.html.twig',
) {
return $env->render($template, [
'paginator' => $paginator,

View File

@@ -46,7 +46,7 @@ class ChillPaginationTwig extends AbstractExtension
public function paginationRender(
Environment $env,
PaginatorInterface $paginator,
$template = '@ChillMain/Pagination/long.html.twig'
$template = '@ChillMain/Pagination/long.html.twig',
) {
$t = match ($template) {
'long' => self::LONG_TEMPLATE,

View File

@@ -44,7 +44,7 @@ class Page implements PageInterface
/**
* The number of items in the whole iteration.
*/
protected int $totalItems
protected int $totalItems,
) {
$this->urlGenerator = $urlGenerator;
}

View File

@@ -56,7 +56,7 @@ class Paginator implements PaginatorInterface
/**
* the key in the GET parameter to indicate the number of item per page.
*/
protected string $itemPerPageKey
protected string $itemPerPageKey,
) {}
public function count(): int

View File

@@ -38,7 +38,7 @@ final readonly class PaginatorFactory implements PaginatorFactoryInterface
* the default item per page. This may be overriden by
* the request or inside the paginator.
*/
private int $itemPerPage = 20
private int $itemPerPage = 20,
) {}
/**
@@ -53,7 +53,7 @@ final readonly class PaginatorFactory implements PaginatorFactoryInterface
public function create(
int $totalItems,
?string $route = null,
?array $routeParameters = null
?array $routeParameters = null,
): PaginatorInterface {
return new Paginator(
$totalItems,