Skip to content

Commit 8eb0d40

Browse files
committed
Fix website cs-php
1 parent 1b87ecc commit 8eb0d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ux.symfony.com/src/Controller/UxPackage/SwupController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public function __invoke(UxPackageRepository $packageRepository, int $page = 1):
2626
$package = $packageRepository->find('swup');
2727

2828
$packages = $packageRepository->findAll();
29-
$pages = ceil(count($packages) / self::PER_PAGE);
29+
$pages = ceil(\count($packages) / self::PER_PAGE);
3030
if ($page < 1 || $page > $pages) {
3131
throw $this->createNotFoundException('Page not found');
3232
}
33-
$results = array_slice($packages, ($page - 1) * self::PER_PAGE, self::PER_PAGE);
33+
$results = \array_slice($packages, ($page - 1) * self::PER_PAGE, self::PER_PAGE);
3434

3535
return $this->render('ux_packages/swup.html.twig', [
3636
'package' => $package,

0 commit comments

Comments
 (0)