Code Duplication    Length = 5-5 lines in 3 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location

@@ 245-249 (lines=5) @@
242
243
        $sql = [$query];
244
245
        if (isset($options['foreignKeys'])) {
246
            foreach ((array) $options['foreignKeys'] as $definition) {
247
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
248
            }
249
        }
250
251
        return $sql;
252
    }

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location

@@ 465-469 (lines=5) @@
462
        }
463
464
        // Propagate foreign key constraints only for InnoDB.
465
        if (isset($options['foreignKeys']) && $engine === 'INNODB') {
466
            foreach ((array) $options['foreignKeys'] as $definition) {
467
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
468
            }
469
        }
470
471
        return $sql;
472
    }

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 793-797 (lines=5) @@
790
            }
791
        }
792
793
        if (isset($options['foreignKeys'])) {
794
            foreach ((array) $options['foreignKeys'] as $definition) {
795
                $sql[] = $this->getCreateForeignKeySQL($definition, $tableName);
796
            }
797
        }
798
799
        return $sql;
800
    }