cs: Fix code-style (using PHPCSFixer and PHPCS).

This commit is contained in:
Pol Dellaiera
2021-12-21 10:59:23 +01:00
parent b7360955f7
commit 8401ce2656
280 changed files with 742 additions and 319 deletions

View File

@@ -28,6 +28,7 @@ use Symfony\Component\Form\Extension\Core\Type\TelType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Templating\EngineInterface;
use function array_fill_keys;
use function array_filter;
use function array_key_exists;
@@ -330,13 +331,17 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
$phoneResults = $this->extractPhonenumberFromPattern->extractPhonenumber($datesResults->getFilteredSubject());
$terms['_default'] = $phoneResults->getFilteredSubject();
if ($datesResults->hasResult() && (!array_key_exists('birthdate', $terms)
|| null !== $terms['birthdate'])) {
if (
$datesResults->hasResult() && (!array_key_exists('birthdate', $terms)
|| null !== $terms['birthdate'])
) {
$terms['birthdate'] = $datesResults->getFound()[0]->format('Y-m-d');
}
if ($phoneResults->hasResult() && (!array_key_exists('phonenumber', $terms)
|| null !== $terms['phonenumber'])) {
if (
$phoneResults->hasResult() && (!array_key_exists('phonenumber', $terms)
|| null !== $terms['phonenumber'])
) {
$terms['phonenumber'] = $phoneResults->getFound()[0];
}