chore: code cleanup

This commit is contained in:
Björn Fromme committed 2025-08-21 14:20:43 +02:00
1 parent c4e28818e0
commit e36009008c
273 files changed
+547 -531

No files matched your search

+2 -2
View File
@@ -136,12 +136,12 @@ class Contact
public function setUser(?User $user): static
{
// unset the owning side of the relation if necessary
if ($user === null && $this->user !== null) {
if (null === $user && null !== $this->user) {
$this->user->setContact(null);
}
// set the owning side of the relation if necessary
if ($user !== null && $user->getContact() !== $this) {
if (null !== $user && $user->getContact() !== $this) {
$user->setContact($this);
}