Code Duplication    Length = 7-7 lines in 4 locations

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

@@ 566-572 (lines=7) @@
563
            }
564
        }
565
566
        foreach ($diff->removedColumns as $column) {
567
            if ($this->onSchemaAlterTableRemoveColumn($column, $diff, $columnSql)) {
568
                continue;
569
            }
570
571
            $queryParts[] =  'DROP COLUMN ' . $column->getQuotedName($this);
572
        }
573
574
        foreach ($diff->changedColumns as $columnDiff) {
575
            if ($this->onSchemaAlterTableChangeColumn($columnDiff, $diff, $columnSql)) {

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

@@ 516-522 (lines=7) @@
513
            $queryParts[] = 'ADD ' . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
514
        }
515
516
        foreach ($diff->removedColumns as $column) {
517
            if ($this->onSchemaAlterTableRemoveColumn($column, $diff, $columnSql)) {
518
                continue;
519
            }
520
521
            $queryParts[] =  'DROP ' . $column->getQuotedName($this);
522
        }
523
524
        foreach ($diff->changedColumns as $columnDiff) {
525
            if ($this->onSchemaAlterTableChangeColumn($columnDiff, $diff, $columnSql)) {

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

@@ 578-584 (lines=7) @@
575
            $queryParts[] = 'ADD ' . $this->getColumnDeclarationSQL($column->getQuotedName($this), $columnArray);
576
        }
577
578
        foreach ($diff->removedColumns as $column) {
579
            if ($this->onSchemaAlterTableRemoveColumn($column, $diff, $columnSql)) {
580
                continue;
581
            }
582
583
            $queryParts[] =  'DROP ' . $column->getQuotedName($this);
584
        }
585
586
        foreach ($diff->changedColumns as $columnDiff) {
587
            if ($this->onSchemaAlterTableChangeColumn($columnDiff, $diff, $columnSql)) {

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

@@ 863-869 (lines=7) @@
860
        }
861
862
        $fields = [];
863
        foreach ($diff->removedColumns as $column) {
864
            if ($this->onSchemaAlterTableRemoveColumn($column, $diff, $columnSql)) {
865
                continue;
866
            }
867
868
            $fields[] = $column->getQuotedName($this);
869
        }
870
871
        if (count($fields)) {
872
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' DROP (' . implode(', ', $fields).')';