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

@@ 306-309 (lines=4) @@
303
            if ( ! empty($this->primers)) {
304
                $referencePrimer = new ReferencePrimer($this->dm, $uow);
305
306
                foreach ($this->primers as $fieldName => $primer) {
307
                    $primer = is_callable($primer) ? $primer : null;
308
                    $referencePrimer->primeReferences($this->class, array($results), $fieldName, $this->unitOfWorkHints, $primer);
309
                }
310
            }
311
        }
312