Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php 1 location

@@ 150-152 (lines=3) @@
147
148
        $result[] = $entity;
149
150
        if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
151
            $this->_uow->hydrationComplete();
152
        }
153
    }
154
}
155

lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 location

@@ 568-570 (lines=3) @@
565
                }
566
            }
567
568
            if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
569
                $this->_uow->hydrationComplete();
570
            }
571
        }
572
573
        if ( ! isset($resultKey) ) {