Code Duplication    Length = 5-5 lines in 2 locations

lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php 1 location

@@ 144-148 (lines=5) @@
141
            case 'real':
142
            case 'numeric':
143
            case 'decimal':
144
                if (preg_match('([A-Za-z]+\(([0-9]+)\,([0-9]+)\))', $tableColumn['type'], $match)) {
145
                    $precision = $match[1];
146
                    $scale = $match[2];
147
                    $length = null;
148
                }
149
                break;
150
            case 'tinytext':
151
                $length = MySqlPlatform::LENGTH_LIMIT_TINYTEXT;

lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 1 location

@@ 406-410 (lines=5) @@
403
            case 'numeric':
404
                $tableColumn['default'] = $this->fixVersion94NegativeNumericDefaultValue($tableColumn['default']);
405
406
                if (preg_match('([A-Za-z]+\(([0-9]+)\,([0-9]+)\))', $tableColumn['complete_type'], $match)) {
407
                    $precision = $match[1];
408
                    $scale = $match[2];
409
                    $length = null;
410
                }
411
                break;
412
            case 'year':
413
                $length = null;