Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 996-998 (lines=3) @@
993
        $sqlType = $this->getSqlType($column->getType());
994
        $def = '';
995
        $def .= strtoupper($sqlType['name']);
996
        if ($column->getPrecision() && $column->getScale()) {
997
            $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
998
        }
999
        $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits);
1000
        if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) {
1001
            $def .= '(' . ($column->getLimit() ? $column->getLimit() : $sqlType['limit']) . ')';

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

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