mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-22 06:34:58 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user