apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -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);