Code Duplication    Length = 9-9 lines in 2 locations

src/Graviton/DocumentBundle/DependencyInjection/Compiler/ExtRefFieldsCompilerPass.php 1 location

@@ 130-138 (lines=9) @@
127
                        $exposedPrefix.$field->getExposedName().'.'
128
                    )
129
                );
130
            } elseif ($field instanceof EmbedMany) {
131
                $result = array_merge(
132
                    $result,
133
                    $this->processDocument(
134
                        $field->getDocument(),
135
                        $exposedPrefix.$field->getExposedName().'.0.'
136
                    )
137
                );
138
            }
139
        }
140
141
        return $result;

src/Graviton/DocumentBundle/DependencyInjection/Compiler/TranslatableFieldsCompilerPass.php 1 location

@@ 78-86 (lines=9) @@
75
                        $prefix.$field->getExposedName().'.'
76
                    )
77
                );
78
            } elseif ($field instanceof EmbedMany) {
79
                $result = array_merge(
80
                    $result,
81
                    $this->getTranslatableFields(
82
                        $field->getDocument(),
83
                        $prefix.$field->getExposedName().'.0.'
84
                    )
85
                );
86
            }
87
        }
88
89
        return $result;