Code Duplication    Length = 4-4 lines in 2 locations

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

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

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