Code Duplication    Length = 4-4 lines in 2 locations

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location

@@ 2288-2291 (lines=4) @@
2285
                    $type instanceof Types\SmallIntType
2286
                ) {
2287
                    $default = " DEFAULT ".$field['default'];
2288
                } elseif (($type instanceof Types\DateTimeType || $type instanceof Types\DateTimeTzType)
2289
                    && $field['default'] == $this->getCurrentTimestampSQL()) {
2290
                    $default = " DEFAULT ".$this->getCurrentTimestampSQL();
2291
                } elseif ($type instanceof Types\TimeType && $field['default'] == $this->getCurrentTimeSQL()) {
2292
                    $default = " DEFAULT ".$this->getCurrentTimeSQL();
2293
                } elseif ($type instanceof Types\DateType && $field['default'] == $this->getCurrentDateSQL()) {
2294
                    $default = " DEFAULT ".$this>getCurrentDateSQL();

lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location

@@ 1567-1570 (lines=4) @@
1564
            return " DEFAULT " . $field['default'];
1565
        }
1566
1567
        if (($type instanceof Types\DateTimeType || $type instanceof Types\DateTimeTzType)
1568
            && $field['default'] == $this->getCurrentTimestampSQL()) {
1569
            return " DEFAULT " . $this->getCurrentTimestampSQL();
1570
        }
1571
1572
        if ($type instanceof Types\BooleanType) {
1573
            return " DEFAULT '" . $this->convertBooleans($field['default']) . "'";