Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 974-976 (lines=3) @@
971
                $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')';
972
            }
973
        }
974
        if ($column->getPrecision() && $column->getScale()) {
975
            $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
976
        }
977
        if (($values = $column->getValues()) && is_array($values)) {
978
            $def .= " CHECK({$column->getName()} IN ('" . implode("', '", $values) . "'))";
979
        }

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

@@ 899-901 (lines=3) @@
896
        if (!in_array($column->getType(), $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) {
897
            $buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']);
898
        }
899
        if ($column->getPrecision() && $column->getScale()) {
900
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
901
        }
902
903
        if ($column->getDefault() === null && $column->isNull()) {
904
            $buffer[] = ' DEFAULT NULL';

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

@@ 1047-1049 (lines=3) @@
1044
                $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']);
1045
            }
1046
        }
1047
        if ($column->getPrecision() && $column->getScale()) {
1048
            $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
1049
        }
1050
1051
        $properties = $column->getProperties();
1052
        $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : '';