Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 711-714 (lines=4) @@
708
            return;
709
        }
710
711
        foreach ($this->primers as $fieldName => $primer) {
712
            $primer = is_callable($primer) ? $primer : null;
713
            $this->referencePrimer->primeReferences($this->class, array($document), $fieldName, $this->unitOfWorkHints, $primer);
714
        }
715
    }
716
}
717

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

@@ 294-297 (lines=4) @@
291
            if ( ! empty($this->primers)) {
292
                $referencePrimer = new ReferencePrimer($this->dm, $uow);
293
294
                foreach ($this->primers as $fieldName => $primer) {
295
                    $primer = is_callable($primer) ? $primer : null;
296
                    $referencePrimer->primeReferences($this->class, array($results), $fieldName, $this->unitOfWorkHints, $primer);
297
                }
298
            }
299
        }
300