Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

@@ 273-276 (lines=4) @@
270
            if ( ! empty($this->primers)) {
271
                $referencePrimer = new ReferencePrimer($this->dm, $uow);
272
273
                foreach ($this->primers as $fieldName => $primer) {
274
                    $primer = is_callable($primer) ? $primer : null;
275
                    $referencePrimer->primeReferences($this->class, array($results), $fieldName, $this->unitOfWorkHints, $primer);
276
                }
277
            }
278
        }
279