Code Duplication    Length = 20-20 lines in 2 locations

lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 2 locations

@@ 257-276 (lines=20) @@
254
     *
255
     * @return string
256
     */
257
    public function getClobTypeDeclarationSQL(array $field)
258
    {
259
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
260
            $length = $field['length'];
261
262
            if ($length <= static::LENGTH_LIMIT_TINYTEXT) {
263
                return 'TINYTEXT';
264
            }
265
266
            if ($length <= static::LENGTH_LIMIT_TEXT) {
267
                return 'TEXT';
268
            }
269
270
            if ($length <= static::LENGTH_LIMIT_MEDIUMTEXT) {
271
                return 'MEDIUMTEXT';
272
            }
273
        }
274
275
        return 'LONGTEXT';
276
    }
277
278
    /**
279
     * {@inheritDoc}
@@ 1117-1136 (lines=20) @@
1114
     *
1115
     * @return string
1116
     */
1117
    public function getBlobTypeDeclarationSQL(array $field)
1118
    {
1119
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
1120
            $length = $field['length'];
1121
1122
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
1123
                return 'TINYBLOB';
1124
            }
1125
1126
            if ($length <= static::LENGTH_LIMIT_BLOB) {
1127
                return 'BLOB';
1128
            }
1129
1130
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
1131
                return 'MEDIUMBLOB';
1132
            }
1133
        }
1134
1135
        return 'LONGBLOB';
1136
    }
1137
1138
    /**
1139
     * {@inheritdoc}