Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 220-224 (lines=5) @@
217
                    $indexYml['name'] = $name;
218
                }
219
220
                if (is_string($indexYml['columns'])) {
221
                    $index = ['columns' => array_map('trim', explode(',', $indexYml['columns']))];
222
                } else {
223
                    $index = ['columns' => $indexYml['columns']];
224
                }
225
226
                if (isset($indexYml['flags'])) {
227
                    if (is_string($indexYml['flags'])) {
@@ 249-253 (lines=5) @@
246
                    $uniqueYml['name'] = $name;
247
                }
248
249
                if (is_string($uniqueYml['columns'])) {
250
                    $unique = ['columns' => array_map('trim', explode(',', $uniqueYml['columns']))];
251
                } else {
252
                    $unique = ['columns' => $uniqueYml['columns']];
253
                }
254
255
                if (isset($uniqueYml['options'])) {
256
                    $unique['options'] = $uniqueYml['options'];