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}
@@ 1094-1113 (lines=20) @@
1091
     *
1092
     * @return string
1093
     */
1094
    public function getBlobTypeDeclarationSQL(array $field)
1095
    {
1096
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
1097
            $length = $field['length'];
1098
1099
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
1100
                return 'TINYBLOB';
1101
            }
1102
1103
            if ($length <= static::LENGTH_LIMIT_BLOB) {
1104
                return 'BLOB';
1105
            }
1106
1107
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
1108
                return 'MEDIUMBLOB';
1109
            }
1110
        }
1111
1112
        return 'LONGBLOB';
1113
    }
1114
1115
    /**
1116
     * {@inheritdoc}