Passed
Push — master ( f96c2a...76a901 )
by BENOIT
02:17
created
src/Changeset/ChangesetFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/Watcher/DoctrineWatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Changeset/IterablePropertyChangeset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     private function diff(array $a, array $b): array
65 65
     {
66
-        return array_filter($a, function ($item) use ($b) {
66
+        return array_filter($a, function($item) use ($b) {
67 67
             return !in_array($item, $b, true);
68 68
         });
69 69
     }
Please login to merge, or discard this patch.