Code Duplication    Length = 5-5 lines in 2 locations

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;

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

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