Code Duplication    Length = 43-44 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

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

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location

@@ 1466-1508 (lines=43) @@
1463
    /**
1464
     * {@inheritdoc}
1465
     */
1466
    protected function initializeDoctrineTypeMappings()
1467
    {
1468
        $this->doctrineTypeMapping = [
1469
            'char' => 'string',
1470
            'long nvarchar' => 'text',
1471
            'long varchar' => 'text',
1472
            'nchar' => 'string',
1473
            'ntext' => 'text',
1474
            'nvarchar' => 'string',
1475
            'text' => 'text',
1476
            'uniqueidentifierstr' => 'guid',
1477
            'varchar' => 'string',
1478
            'xml' => 'text',
1479
            'bigint' => 'bigint',
1480
            'unsigned bigint' => 'bigint',
1481
            'bit' => 'boolean',
1482
            'decimal' => 'decimal',
1483
            'double' => 'float',
1484
            'float' => 'float',
1485
            'int' => 'integer',
1486
            'integer' => 'integer',
1487
            'unsigned int' => 'integer',
1488
            'numeric' => 'decimal',
1489
            'smallint' => 'smallint',
1490
            'unsigned smallint', 'smallint',
1491
            'tinyint' => 'smallint',
1492
            'unsigned tinyint', 'smallint',
1493
            'money' => 'decimal',
1494
            'smallmoney' => 'decimal',
1495
            'long varbit' => 'text',
1496
            'varbit' => 'string',
1497
            'date' => 'date',
1498
            'datetime' => 'datetime',
1499
            'smalldatetime' => 'datetime',
1500
            'time' => 'time',
1501
            'timestamp' => 'datetime',
1502
            'binary' => 'binary',
1503
            'image' => 'blob',
1504
            'long binary' => 'blob',
1505
            'uniqueidentifier' => 'guid',
1506
            'varbinary' => 'binary',
1507
        ];
1508
    }
1509
}
1510