mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
Php cs fixes and phpstan
This commit is contained in:
@@ -39,12 +39,12 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
|
||||
|
||||
public function __construct(
|
||||
private readonly \Twig\Environment $templating,
|
||||
private readonly ExtractDateFromPattern $extractDateFromPattern,
|
||||
private readonly ExtractPhonenumberFromPattern $extractPhonenumberFromPattern,
|
||||
private readonly PaginatorFactory $paginatorFactory,
|
||||
private readonly PersonACLAwareRepositoryInterface $personACLAwareRepository,
|
||||
private readonly GenderRepository $genderRepository,
|
||||
) {}
|
||||
private readonly ExtractDateFromPattern $extractDateFromPattern,
|
||||
private readonly ExtractPhonenumberFromPattern $extractPhonenumberFromPattern,
|
||||
private readonly PaginatorFactory $paginatorFactory,
|
||||
private readonly PersonACLAwareRepositoryInterface $personACLAwareRepository,
|
||||
private readonly GenderRepository $genderRepository,
|
||||
) {}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder)
|
||||
{
|
||||
@@ -112,6 +112,7 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
|
||||
$string .= !isset($data['phonenumber']) ? '' : 'phonenumber:'.$data['phonenumber']->getNationalNumber();
|
||||
|
||||
$string .= !isset($data['gender']) ? '' : 'gender:"'.$data['gender']->getId().'"';
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user