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

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