Code Duplication    Length = 3-3 lines in 2 locations

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

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