Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 2285-2288 (lines=4) @@
2282
                $type = $field['type'];
2283
                if ($type instanceof Types\PhpIntegerMappingType) {
2284
                    $default = " DEFAULT ".$field['default'];
2285
                } elseif ($type instanceof Types\PhpDateTimeMappingType
2286
                    && $field['default'] == $this->getCurrentTimestampSQL()) {
2287
                    $default = " DEFAULT ".$this->getCurrentTimestampSQL();
2288
                } elseif ($type instanceof Types\TimeType && $field['default'] == $this->getCurrentTimeSQL()) {
2289
                    $default = " DEFAULT ".$this->getCurrentTimeSQL();
2290
                } elseif ($type instanceof Types\DateType && $field['default'] == $this->getCurrentDateSQL()) {
2291
                    $default = " DEFAULT ".$this->getCurrentDateSQL();

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

@@ 1564-1567 (lines=4) @@
1561
            return " DEFAULT " . $field['default'];
1562
        }
1563
1564
        if ($type instanceof Types\PhpDateTimeMappingType
1565
            && $field['default'] == $this->getCurrentTimestampSQL()) {
1566
            return " DEFAULT " . $this->getCurrentTimestampSQL();
1567
        }
1568
1569
        if ($type instanceof Types\BooleanType) {
1570
            return " DEFAULT '" . $this->convertBooleans($field['default']) . "'";