Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 604-606 (lines=3) @@
601
        }
602
603
        // Fire PreFlush lifecycle callbacks
604
        if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) {
605
            $class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm)));
606
        }
607
608
        $this->computeOrRecomputeChangeSet($class, $document);
609
    }