Code Duplication    Length = 20-20 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 2 locations

@@ 268-287 (lines=20) @@
265
     *
266
     * @return string
267
     */
268
    public function getClobTypeDeclarationSQL(array $field)
269
    {
270
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
271
            $length = $field['length'];
272
273
            if ($length <= static::LENGTH_LIMIT_TINYTEXT) {
274
                return 'TINYTEXT';
275
            }
276
277
            if ($length <= static::LENGTH_LIMIT_TEXT) {
278
                return 'TEXT';
279
            }
280
281
            if ($length <= static::LENGTH_LIMIT_MEDIUMTEXT) {
282
                return 'MEDIUMTEXT';
283
            }
284
        }
285
286
        return 'LONGTEXT';
287
    }
288
289
    /**
290
     * {@inheritDoc}
@@ 1115-1134 (lines=20) @@
1112
     *
1113
     * @return string
1114
     */
1115
    public function getBlobTypeDeclarationSQL(array $field)
1116
    {
1117
        if ( ! empty($field['length']) && is_numeric($field['length'])) {
1118
            $length = $field['length'];
1119
1120
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
1121
                return 'TINYBLOB';
1122
            }
1123
1124
            if ($length <= static::LENGTH_LIMIT_BLOB) {
1125
                return 'BLOB';
1126
            }
1127
1128
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
1129
                return 'MEDIUMBLOB';
1130
            }
1131
        }
1132
1133
        return 'LONGBLOB';
1134
    }
1135
1136
    /**
1137
     * {@inheritdoc}