Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 458-460 (lines=3) @@
455
        }
456
457
        // Invoke the postLoad lifecycle callbacks and listeners
458
        if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) {
459
            $metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm)));
460
        }
461
        if ($this->evm->hasListeners(Events::postLoad)) {
462
            $this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm));
463
        }

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
    }