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

@@ 416-420 (lines=5) @@
413
            case 'numeric':
414
                $tableColumn['default'] = $this->fixVersion94NegativeNumericDefaultValue($tableColumn['default']);
415
416
                if (preg_match('([A-Za-z]+\(([0-9]+)\,([0-9]+)\))', $tableColumn['complete_type'], $match)) {
417
                    $precision = $match[1];
418
                    $scale = $match[2];
419
                    $length = null;
420
                }
421
                break;
422
            case 'year':
423
                $length = null;