mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -20,8 +20,6 @@ use Symfony\Component\Clock\ClockInterface;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
use function count;
|
||||
|
||||
final class SocialWorkSocialActionApiController extends ApiController
|
||||
{
|
||||
public function __construct(
|
||||
@@ -46,9 +44,9 @@ final class SocialWorkSocialActionApiController extends ApiController
|
||||
|
||||
usort($socialActions, static fn (SocialAction $sa, SocialAction $sb) => $sa->getOrdering() <=> $sb->getOrdering());
|
||||
|
||||
$pagination = $this->paginator->create(count($socialActions));
|
||||
$pagination = $this->paginator->create(\count($socialActions));
|
||||
// max one page
|
||||
$pagination->setItemsPerPage(count($socialActions));
|
||||
$pagination->setItemsPerPage(\count($socialActions));
|
||||
|
||||
$collection = new Collection($socialActions, $pagination);
|
||||
|
||||
|
Reference in New Issue
Block a user