Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location

@@ 670-672 (lines=3) @@
667
        }
668
669
        // Fire PreFlush lifecycle callbacks
670
        if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) {
671
            $class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm)));
672
        }
673
674
        $this->computeOrRecomputeChangeSet($class, $document);
675
    }

lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location

@@ 467-469 (lines=3) @@
464
        }
465
466
        // Invoke the postLoad lifecycle callbacks and listeners
467
        if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) {
468
            $metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm)));
469
        }
470
        if ($this->evm->hasListeners(Events::postLoad)) {
471
            $this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm));
472
        }