php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -15,7 +15,9 @@ use Chill\MainBundle\Pagination\PaginatorInterface;
class Collection
{
public function __construct(private $items, private readonly PaginatorInterface $paginator) {}
public function __construct(private $items, private readonly PaginatorInterface $paginator)
{
}
public function getItems()
{

View File

@@ -13,7 +13,9 @@ namespace Chill\MainBundle\Serializer\Model;
class Counter implements \JsonSerializable
{
public function __construct(private ?int $counter) {}
public function __construct(private ?int $counter)
{
}
public function getCounter(): ?int
{

View File

@@ -47,7 +47,9 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
'confidential',
];
public function __construct(private readonly AddressRender $addressRender) {}
public function __construct(private readonly AddressRender $addressRender)
{
}
/**
* @param Address $address

View File

@@ -20,7 +20,9 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
{
public function __construct(private readonly CenterRepository $repository) {}
public function __construct(private readonly CenterRepository $repository)
{
}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -23,7 +23,9 @@ class CommentEmbeddableDocGenNormalizer implements ContextAwareNormalizerInterfa
{
use NormalizerAwareTrait;
public function __construct(private readonly UserRepository $userRepository) {}
public function __construct(private readonly UserRepository $userRepository)
{
}
/**
* @param CommentEmbeddable $object

View File

@@ -20,7 +20,9 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInterface
{
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag) {}
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag)
{
}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -19,7 +19,9 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class DoctrineExistingEntityNormalizer implements DenormalizerInterface
{
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory) {}
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory)
{
}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -23,7 +23,9 @@ class EntityWorkflowNormalizer implements NormalizerInterface, NormalizerAwareIn
{
use NormalizerAwareTrait;
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry) {}
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry)
{
}
/**
* @param EntityWorkflow $object

View File

@@ -21,7 +21,9 @@ class EntityWorkflowStepNormalizer implements NormalizerAwareInterface, Normaliz
{
use NormalizerAwareTrait;
public function __construct(private readonly MetadataExtractor $metadataExtractor) {}
public function __construct(private readonly MetadataExtractor $metadataExtractor)
{
}
/**
* @param EntityWorkflowStep $object

View File

@@ -23,7 +23,9 @@ class NotificationNormalizer implements NormalizerAwareInterface, NormalizerInte
{
use NormalizerAwareTrait;
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security) {}
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security)
{
}
/**
* @param Notification $object

View File

@@ -18,7 +18,9 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class PrivateCommentEmbeddableNormalizer implements NormalizerInterface, DenormalizerInterface
{
public function __construct(private readonly Security $security) {}
public function __construct(private readonly Security $security)
{
}
public function denormalize($data, string $type, string $format = null, array $context = []): PrivateCommentEmbeddable
{

View File

@@ -38,7 +38,9 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
'isAbsent' => false,
];
public function __construct(private readonly UserRender $userRender) {}
public function __construct(private readonly UserRender $userRender)
{
}
public function normalize($object, $format = null, array $context = [])
{