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

@@ -29,7 +29,6 @@ use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use function count;
final readonly class CalendarContext implements CalendarContextInterface
{
@@ -122,8 +121,6 @@ final readonly class CalendarContext implements CalendarContextInterface
}
}
/**
*/
public function getData(DocGeneratorTemplate $template, mixed $entity, array $contextGenerationData = []): array
{
$options = $this->getOptions($template);
@@ -173,7 +170,7 @@ final readonly class CalendarContext implements CalendarContextInterface
if ($options['askMainPerson']) {
$data['mainPerson'] = null;
if (1 === count($entity->getPersons())) {
if (1 === \count($entity->getPersons())) {
$data['mainPerson'] = $entity->getPersons()->first();
}
}
@@ -181,7 +178,7 @@ final readonly class CalendarContext implements CalendarContextInterface
if ($options['askThirdParty']) {
$data['thirdParty'] = null;
if (1 === count($entity->getProfessionals())) {
if (1 === \count($entity->getProfessionals())) {
$data['thirdParty'] = $entity->getProfessionals()->first();
}
}