Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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