Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 1029-1031 (lines=3) @@
1026
        if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
1027
            $buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']);
1028
        }
1029
        if ($column->getPrecision() && $column->getScale()) {
1030
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
1031
        }
1032
1033
        $properties = $column->getProperties();
1034
        $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : '';