Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 2 locations

@@ 223-231 (lines=9) @@
220
            // required for getting the order of the columns right.
221
            foreach ($colNumbers as $colNum) {
222
                foreach ($indexColumns as $colRow) {
223
                    if ($colNum === '0') {
224
                        $buffer[] = array(
225
                            'key_name' => $row['relname'],
226
                            'column_name' => $row['relname'],
227
                            'non_unique' => !$row['indisunique'],
228
                            'primary' => $row['indisprimary'],
229
                            'where' => $row['where'],
230
                        );
231
                    }
232
233
                    if ($colNum == $colRow['attnum']) {
234
                        $buffer[] = array(
@@ 233-241 (lines=9) @@
230
                        );
231
                    }
232
233
                    if ($colNum == $colRow['attnum']) {
234
                        $buffer[] = array(
235
                            'key_name' => $row['relname'],
236
                            'column_name' => trim($colRow['attname']),
237
                            'non_unique' => !$row['indisunique'],
238
                            'primary' => $row['indisprimary'],
239
                            'where' => $row['where'],
240
                        );
241
                    }
242
                }
243
            }
244
        }