Skip to content

Commit

Permalink
Fix coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
fmasa committed Sep 1, 2017
1 parent 43470d7 commit 7187239
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/DoctrineNullableEmbeddables/Subscriber.php
Expand Up @@ -28,10 +28,7 @@ public function getSubscribedEvents(): array
return ['postLoad'];
}

private function clearEmbeddablesIfNecessary(
$object,
EntityManager $entityManager
)
private function clearEmbeddablesIfNecessary($object, EntityManager $entityManager)
{
$metadata = $entityManager->getClassMetadata(get_class($object));

Expand Down Expand Up @@ -69,7 +66,7 @@ public function postLoad(LifecycleEventArgs $args)
}

$this->clearEmbeddablesIfNecessary(
$args->getObject(),
$object,
$args->getEntityManager()
);
}
Expand All @@ -87,7 +84,7 @@ private function isEmpty($object, ClassMetadata $metadata): bool

private function hasNullableAnnotation(\ReflectionProperty $property): bool
{
return $this->reader->getPropertyAnnotation($property, Nullable::class) !== NULL;
return $this->reader->getPropertyAnnotation($property, Nullable::class) !== null;
}

}

0 comments on commit 7187239

Please sign in to comment.