Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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