php code style fix

This commit is contained in:
nobohan
2022-04-20 08:52:15 +02:00
parent 7a6aa6edcb
commit f2c60cfd20
5 changed files with 9 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ use Chill\PersonBundle\Form\PersonType;
use Chill\PersonBundle\Privacy\PrivacyEvent;
use Chill\PersonBundle\Repository\PersonRepository;
use Chill\PersonBundle\Search\SimilarPersonMatcher;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
@@ -33,8 +34,8 @@ use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use function count;
use function hash;
use function implode;
@@ -265,13 +266,12 @@ final class PersonController extends AbstractController
$address = $form->get('address')->getData();
$addressForm = $form->get('addressForm')->getData();
if(null !== $address and $addressForm){
if (null !== $address && $addressForm) {
$household = new Household();
$member = new HouseholdMember();
$member->setPerson($person);
$member->setStartDate(new \DateTimeImmutable());
$member->setStartDate(new DateTimeImmutable());
$household->addMember($member);
$household->setForceAddress($address);