Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 548-559 (lines=12) @@
545
                    . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
546
        }
547
548
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
549
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
550
                continue;
551
            }
552
553
            $oldColumnName = new Identifier($oldColumnName);
554
555
            $columnArray = $column->toArray();
556
            $columnArray['comment'] = $this->getColumnComment($column);
557
            $queryParts[] =  'CHANGE ' . $oldColumnName->getQuotedName($this) . ' '
558
                    . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
559
        }
560
561
        $sql = [];
562
        $tableSql = [];

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

@@ 608-618 (lines=11) @@
605
                    . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
606
        }
607
608
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
609
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
610
                continue;
611
            }
612
613
            $oldColumnName = new Identifier($oldColumnName);
614
            $columnArray = $column->toArray();
615
            $columnArray['comment'] = $this->getColumnComment($column);
616
            $queryParts[] =  'CHANGE ' . $oldColumnName->getQuotedName($this) . ' '
617
                    . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
618
        }
619
620
        if (isset($diff->addedIndexes['primary'])) {
621
            $keyColumns = array_unique(array_values($diff->addedIndexes['primary']->getColumns()));