Code Duplication    Length = 5-7 lines in 2 locations

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

@@ 1036-1042 (lines=7) @@
1033
1034
        $buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL';
1035
1036
        if ($create === true) {
1037
            if ($column->getDefault() === null && $column->isNull()) {
1038
                $buffer[] = ' DEFAULT NULL';
1039
            } else {
1040
                $buffer[] = $this->getDefaultValueDefinition($column->getDefault());
1041
            }
1042
        }
1043
1044
        if ($column->isIdentity()) {
1045
            $buffer[] = 'IDENTITY(1, 1)';

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

@@ 919-923 (lines=5) @@
916
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
917
        }
918
919
        if ($column->getDefault() === null && $column->isNull()) {
920
            $buffer[] = ' DEFAULT NULL';
921
        } else {
922
            $buffer[] = $this->getDefaultValueDefinition($column->getDefault());
923
        }
924
925
        if ($setNullSql) {
926
            $buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL';