Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 717-720 (lines=4) @@
714
            return;
715
        }
716
717
        foreach ($this->primers as $fieldName => $primer) {
718
            $primer = is_callable($primer) ? $primer : null;
719
            $this->referencePrimer->primeReferences($this->class, array($document), $fieldName, $this->unitOfWorkHints, $primer);
720
        }
721
    }
722
}
723

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

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