Code Duplication    Length = 5-7 lines in 2 locations

src/Phinx/Db/Adapter/OracleAdapter.php 1 location

@@ 902-906 (lines=5) @@
899
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
900
        }
901
902
        if ($column->getDefault() === null && $column->isNull()) {
903
            $buffer[] = ' DEFAULT NULL';
904
        } else {
905
            $buffer[] = $this->getDefaultValueDefinition($column->getDefault());
906
        }
907
908
        if ($setNullSql) {
909
            $buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL';

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 1057-1063 (lines=7) @@
1054
1055
        $buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL';
1056
1057
        if ($create === true) {
1058
            if ($column->getDefault() === null && $column->isNull()) {
1059
                $buffer[] = ' DEFAULT NULL';
1060
            } else {
1061
                $buffer[] = $this->getDefaultValueDefinition($column->getDefault());
1062
            }
1063
        }
1064
1065
        if ($column->isIdentity()) {
1066
            $buffer[] = 'IDENTITY(1, 1)';