space after if

and switch `$object->getOwner()->getId()` and `$user->getId()`