Code Duplication    Length = 3-3 lines in 2 locations

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' : '';

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

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