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

@@ 606-608 (lines=3) @@
603
                }
604
            }
605
606
            if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
607
                $this->_uow->hydrationComplete();
608
            }
609
        }
610
611
        if ( ! isset($resultKey) ) {