Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Tools/DocumentGenerator.php 2 locations

@@ 576-578 (lines=3) @@
573
                $indexLines[] = " *     indexes={";
574
                foreach ($metadata->indexes as $index) {
575
                    $keys = array();
576
                    foreach ($index['keys'] as $key => $value) {
577
                        $keys[] = '"' . $key . '"="' . $value . '"';
578
                    }
579
                    $options = array();
580
                    foreach ($index['options'] as $key => $value) {
581
                        $options[] = '"' . $key . '"="' . $value . '"';
@@ 580-582 (lines=3) @@
577
                        $keys[] = '"' . $key . '"="' . $value . '"';
578
                    }
579
                    $options = array();
580
                    foreach ($index['options'] as $key => $value) {
581
                        $options[] = '"' . $key . '"="' . $value . '"';
582
                    }
583
                    $indexes[] = '@ODM\\Index(keys={' . implode(', ', $keys) . '}, options={' . implode(', ', $options) . '})';
584
                }
585
                $indexLines[] = "\n *         " . implode(",\n *         ", $indexes);