Code Duplication    Length = 3-3 lines in 2 locations

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 1043-1045 (lines=3) @@
1040
                'int',
1041
                'tinyint'
1042
            ];
1043
            if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
1044
                $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']);
1045
            }
1046
        }
1047
        if ($column->getPrecision() && $column->getScale()) {
1048
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';

src/Phinx/Db/Adapter/OracleAdapter.php 1 location

@@ 895-897 (lines=3) @@
892
            static::PHINX_TYPE_UUID,
893
            static::PHINX_TYPE_BOOLEAN
894
        ];
895
        if (!in_array($column->getType(), $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
896
            $buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']);
897
        }
898
        if ($column->getPrecision() && $column->getScale()) {
899
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
900
        }