chore: code cleanup
This commit is contained in:
1 parent
c4e28818e0
commit
e36009008c
273 files changed
+547
-531
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user