mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -48,20 +48,11 @@ class ChillPaginationTwig extends AbstractExtension
|
||||
PaginatorInterface $paginator,
|
||||
$template = '@ChillMain/Pagination/long.html.twig'
|
||||
) {
|
||||
switch ($template) {
|
||||
case 'long':
|
||||
$t = self::LONG_TEMPLATE;
|
||||
|
||||
break;
|
||||
|
||||
case 'short':
|
||||
$t = self::SHORT_TEMPLATE;
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$t = $template;
|
||||
}
|
||||
$t = match ($template) {
|
||||
'long' => self::LONG_TEMPLATE,
|
||||
'short' => self::SHORT_TEMPLATE,
|
||||
default => $template,
|
||||
};
|
||||
|
||||
return $env->render($t, [
|
||||
'paginator' => $paginator,
|
||||
|
Reference in New Issue
Block a user