Code Duplication    Length = 5-5 lines in 5 locations

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location

@@ 1674-1678 (lines=5) @@
1671
1672
        $sql[] = $query;
1673
1674
        if (isset($options['foreignKeys'])) {
1675
            foreach ((array) $options['foreignKeys'] as $definition) {
1676
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
1677
            }
1678
        }
1679
1680
        return $sql;
1681
    }

lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location

@@ 232-236 (lines=5) @@
229
230
        $sql[] = $query;
231
232
        if (isset($options['foreignKeys'])) {
233
            foreach ((array) $options['foreignKeys'] as $definition) {
234
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
235
            }
236
        }
237
238
        return $sql;
239
    }

lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 770-774 (lines=5) @@
767
            }
768
        }
769
770
        if (isset($options['foreignKeys'])) {
771
            foreach ((array) $options['foreignKeys'] as $definition) {
772
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
773
            }
774
        }
775
776
        return $sql;
777
    }

lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location

@@ 290-294 (lines=5) @@
287
            }
288
        }
289
290
        if (isset($options['foreignKeys'])) {
291
            foreach ((array) $options['foreignKeys'] as $definition) {
292
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
293
            }
294
        }
295
296
        return array_merge($sql, $commentsSql, $defaultConstraintsSql);
297
    }

lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location

@@ 454-458 (lines=5) @@
451
        }
452
453
        // Propagate foreign key constraints only for InnoDB.
454
        if (isset($options['foreignKeys']) && $engine === 'INNODB') {
455
            foreach ((array) $options['foreignKeys'] as $definition) {
456
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
457
            }
458
        }
459
460
        return $sql;
461
    }