mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user