Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 985-987 (lines=3) @@
982
        $sqlType = $this->getSqlType($column->getType());
983
        $def = '';
984
        $def .= strtoupper($sqlType['name']);
985
        if ($column->getPrecision() && $column->getScale()) {
986
            $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
987
        }
988
        $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits);
989
        if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) {
990
            $def .= '(' . ($column->getLimit() ? $column->getLimit() : $sqlType['limit']) . ')';

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

@@ 1039-1041 (lines=3) @@
1036
        if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
1037
            $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']);
1038
        }
1039
        if ($column->getPrecision() && $column->getScale()) {
1040
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
1041
        }
1042
1043
        $properties = $column->getProperties();
1044
        $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : '';