DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -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,