@@ -60,7 +60,7 @@ |
||
60 | 60 | $changeset[$fieldName][] = $classMetadata->getReflectionClass()->getDefaultProperties()[$fieldName] ?? null; |
61 | 61 | $changeset[$fieldName][] = $reflectionProperty->getValue($entity); |
62 | 62 | } |
63 | - $changeset = array_filter($changeset, function ($changes) { |
|
63 | + $changeset = array_filter($changeset, function($changes) { |
|
64 | 64 | list($old, $new) = $changes; |
65 | 65 | return $old !== $new; |
66 | 66 | }); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function watch(string $entityClass, string $property, callable $callback, array $options = []): void |
54 | 54 | { |
55 | 55 | $options = $options + $this->defaulOptions; |
56 | - $listener = function (LifecycleEventArgs $eventArgs) use ($entityClass, $property, $callback, $options) { |
|
56 | + $listener = function(LifecycleEventArgs $eventArgs) use ($entityClass, $property, $callback, $options) { |
|
57 | 57 | $em = $eventArgs->getEntityManager(); |
58 | 58 | $unitOfWork = $em->getUnitOfWork(); |
59 | 59 | $entity = $eventArgs->getEntity(); |