Code Duplication    Length = 43-44 lines in 2 locations

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

@@ 1450-1492 (lines=43) @@
1447
    /**
1448
     * {@inheritdoc}
1449
     */
1450
    protected function initializeDoctrineTypeMappings()
1451
    {
1452
        $this->doctrineTypeMapping = [
1453
            'char' => 'string',
1454
            'long nvarchar' => 'text',
1455
            'long varchar' => 'text',
1456
            'nchar' => 'string',
1457
            'ntext' => 'text',
1458
            'nvarchar' => 'string',
1459
            'text' => 'text',
1460
            'uniqueidentifierstr' => 'guid',
1461
            'varchar' => 'string',
1462
            'xml' => 'text',
1463
            'bigint' => 'bigint',
1464
            'unsigned bigint' => 'bigint',
1465
            'bit' => 'boolean',
1466
            'decimal' => 'decimal',
1467
            'double' => 'float',
1468
            'float' => 'float',
1469
            'int' => 'integer',
1470
            'integer' => 'integer',
1471
            'unsigned int' => 'integer',
1472
            'numeric' => 'decimal',
1473
            'smallint' => 'smallint',
1474
            'unsigned smallint', 'smallint',
1475
            'tinyint' => 'smallint',
1476
            'unsigned tinyint', 'smallint',
1477
            'money' => 'decimal',
1478
            'smallmoney' => 'decimal',
1479
            'long varbit' => 'text',
1480
            'varbit' => 'string',
1481
            'date' => 'date',
1482
            'datetime' => 'datetime',
1483
            'smalldatetime' => 'datetime',
1484
            'time' => 'time',
1485
            'timestamp' => 'datetime',
1486
            'binary' => 'binary',
1487
            'image' => 'blob',
1488
            'long binary' => 'blob',
1489
            'uniqueidentifier' => 'guid',
1490
            'varbinary' => 'binary',
1491
        ];
1492
    }
1493
}
1494

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

@@ 1097-1140 (lines=44) @@
1094
    /**
1095
     * {@inheritDoc}
1096
     */
1097
    protected function initializeDoctrineTypeMappings()
1098
    {
1099
        $this->doctrineTypeMapping = [
1100
            'smallint'      => 'smallint',
1101
            'int2'          => 'smallint',
1102
            'serial'        => 'integer',
1103
            'serial4'       => 'integer',
1104
            'int'           => 'integer',
1105
            'int4'          => 'integer',
1106
            'integer'       => 'integer',
1107
            'bigserial'     => 'bigint',
1108
            'serial8'       => 'bigint',
1109
            'bigint'        => 'bigint',
1110
            'int8'          => 'bigint',
1111
            'bool'          => 'boolean',
1112
            'boolean'       => 'boolean',
1113
            'text'          => 'text',
1114
            'tsvector'      => 'text',
1115
            'varchar'       => 'string',
1116
            'interval'      => 'string',
1117
            '_varchar'      => 'string',
1118
            'char'          => 'string',
1119
            'bpchar'        => 'string',
1120
            'inet'          => 'string',
1121
            'date'          => 'date',
1122
            'datetime'      => 'datetime',
1123
            'timestamp'     => 'datetime',
1124
            'timestamptz'   => 'datetimetz',
1125
            'time'          => 'time',
1126
            'timetz'        => 'time',
1127
            'float'         => 'float',
1128
            'float4'        => 'float',
1129
            'float8'        => 'float',
1130
            'double'        => 'float',
1131
            'double precision' => 'float',
1132
            'real'          => 'float',
1133
            'decimal'       => 'decimal',
1134
            'money'         => 'decimal',
1135
            'numeric'       => 'decimal',
1136
            'year'          => 'date',
1137
            'uuid'          => 'guid',
1138
            'bytea'         => 'blob',
1139
        ];
1140
    }
1141
1142
    /**
1143
     * {@inheritDoc}