Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 564-573 (lines=10) @@
561
        $sql = [];
562
        $tableSql = [];
563
564
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
565
            if (count($queryParts) > 0) {
566
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . implode(", ", $queryParts);
567
            }
568
            $sql = array_merge(
569
                $this->getPreAlterTableIndexForeignKeySQL($diff),
570
                $sql,
571
                $this->getPostAlterTableIndexForeignKeySQL($diff)
572
            );
573
        }
574
575
        return array_merge($sql, $tableSql, $columnSql);
576
    }

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

@@ 629-638 (lines=10) @@
626
        $sql = [];
627
        $tableSql = [];
628
629
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
630
            if (count($queryParts) > 0) {
631
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' ' . implode(", ", $queryParts);
632
            }
633
            $sql = array_merge(
634
                $this->getPreAlterTableIndexForeignKeySQL($diff),
635
                $sql,
636
                $this->getPostAlterTableIndexForeignKeySQL($diff)
637
            );
638
        }
639
640
        return array_merge($sql, $tableSql, $columnSql);
641
    }