Code Duplication    Length = 20-20 lines in 2 locations

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

@@ 256-275 (lines=20) @@
253
     *
254
     * @return string
255
     */
256
    public function getClobTypeDeclarationSQL(array $field)
257
    {
258
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
259
            $length = $field['length'];
260
261
            if ($length <= static::LENGTH_LIMIT_TINYTEXT) {
262
                return 'TINYTEXT';
263
            }
264
265
            if ($length <= static::LENGTH_LIMIT_TEXT) {
266
                return 'TEXT';
267
            }
268
269
            if ($length <= static::LENGTH_LIMIT_MEDIUMTEXT) {
270
                return 'MEDIUMTEXT';
271
            }
272
        }
273
274
        return 'LONGTEXT';
275
    }
276
277
    /**
278
     * {@inheritDoc}
@@ 1103-1122 (lines=20) @@
1100
     *
1101
     * @return string
1102
     */
1103
    public function getBlobTypeDeclarationSQL(array $field)
1104
    {
1105
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
1106
            $length = $field['length'];
1107
1108
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
1109
                return 'TINYBLOB';
1110
            }
1111
1112
            if ($length <= static::LENGTH_LIMIT_BLOB) {
1113
                return 'BLOB';
1114
            }
1115
1116
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
1117
                return 'MEDIUMBLOB';
1118
            }
1119
        }
1120
1121
        return 'LONGBLOB';
1122
    }
1123
1124
    /**
1125
     * {@inheritdoc}