mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -26,35 +26,23 @@ class PaginatorFactory
|
||||
public const DEFAULT_PAGE_NUMBER = 1;
|
||||
|
||||
/**
|
||||
* the default item per page. This may be overriden by
|
||||
* the request or inside the paginator.
|
||||
*
|
||||
* @var int
|
||||
* @param int $itemPerPage
|
||||
*/
|
||||
private $itemPerPage;
|
||||
|
||||
/**
|
||||
* the request stack.
|
||||
*
|
||||
* @var RequestStack
|
||||
*/
|
||||
private $requestStack;
|
||||
|
||||
/**
|
||||
* the router and generator for url.
|
||||
*
|
||||
* @var RouterInterface
|
||||
*/
|
||||
private $router;
|
||||
|
||||
public function __construct(
|
||||
RequestStack $requestStack,
|
||||
RouterInterface $router,
|
||||
$itemPerPage = 20
|
||||
/**
|
||||
* the request stack.
|
||||
*/
|
||||
private RequestStack $requestStack,
|
||||
/**
|
||||
* the router and generator for url.
|
||||
*/
|
||||
private RouterInterface $router,
|
||||
/**
|
||||
* the default item per page. This may be overriden by
|
||||
* the request or inside the paginator.
|
||||
*/
|
||||
private $itemPerPage = 20
|
||||
) {
|
||||
$this->itemPerPage = $itemPerPage;
|
||||
$this->requestStack = $requestStack;
|
||||
$this->router = $router;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,7 +59,7 @@ class PaginatorFactory
|
||||
*/
|
||||
public function create(
|
||||
$totalItems,
|
||||
$route = null,
|
||||
?string $route = null,
|
||||
?array $routeParameters = null
|
||||
) {
|
||||
return new Paginator(
|
||||
|
Reference in New Issue
Block a user