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}
@@ 1105-1124 (lines=20) @@
1102
     *
1103
     * @return string
1104
     */
1105
    public function getBlobTypeDeclarationSQL(array $field)
1106
    {
1107
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
1108
            $length = $field['length'];
1109
1110
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
1111
                return 'TINYBLOB';
1112
            }
1113
1114
            if ($length <= static::LENGTH_LIMIT_BLOB) {
1115
                return 'BLOB';
1116
            }
1117
1118
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
1119
                return 'MEDIUMBLOB';
1120
            }
1121
        }
1122
1123
        return 'LONGBLOB';
1124
    }
1125
1126
    /**
1127
     * {@inheritdoc}