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

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