Code Duplication    Length = 5-5 lines in 2 locations

lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 2 locations

@@ 215-219 (lines=5) @@
212
                    $indexYml['name'] = $name;
213
                }
214
215
                if (is_string($indexYml['columns'])) {
216
                    $index = ['columns' => array_map('trim', explode(',', $indexYml['columns']))];
217
                } else {
218
                    $index = ['columns' => $indexYml['columns']];
219
                }
220
221
                if (isset($indexYml['flags'])) {
222
                    if (is_string($indexYml['flags'])) {
@@ 244-248 (lines=5) @@
241
                    $uniqueYml['name'] = $name;
242
                }
243
244
                if (is_string($uniqueYml['columns'])) {
245
                    $unique = ['columns' => array_map('trim', explode(',', $uniqueYml['columns']))];
246
                } else {
247
                    $unique = ['columns' => $uniqueYml['columns']];
248
                }
249
250
                if (isset($uniqueYml['options'])) {
251
                    $unique['options'] = $uniqueYml['options'];