Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 978-980 (lines=3) @@
975
            $sqlType = $this->getSqlType($column->getType());
976
            $def = '';
977
            $def .= strtoupper($sqlType['name']);
978
            if ($column->getPrecision() && $column->getScale()) {
979
                $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
980
            }
981
            $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits);
982
            if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) {
983
                $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')';

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

@@ 1034-1036 (lines=3) @@
1031
            if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
1032
                $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']);
1033
            }
1034
            if ($column->getPrecision() && $column->getScale()) {
1035
                $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
1036
            }
1037
            $properties = $column->getProperties();
1038
            $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : '';
1039
            $buffer[] = isset($properties['rowguidcol']) ? 'ROWGUIDCOL' : '';