Code Duplication    Length = 3-3 lines in 3 locations

src/KitLoong/MigrationsGenerator/Generators/OtherField.php 1 location

@@ 15-17 (lines=3) @@
12
{
13
    public function makeField(array $field): array
14
    {
15
        if (isset(FieldGenerator::$fieldTypeMap[$field['type']])) {
16
            $field['type'] = FieldGenerator::$fieldTypeMap[$field['type']];
17
        }
18
        return $field;
19
    }
20
}

src/KitLoong/MigrationsGenerator/Generators/DatetimeField.php 1 location

@@ 41-43 (lines=3) @@
38
            $field['field'] = null;
39
        }
40
41
        if (isset(FieldGenerator::$fieldTypeMap[$field['type']])) {
42
            $field['type'] = FieldGenerator::$fieldTypeMap[$field['type']];
43
        }
44
45
        if ($column->getLength() && $column->getLength() > 0) {
46
            if ($field['type'] === ColumnType::SOFT_DELETES) {

src/KitLoong/MigrationsGenerator/Generators/IntegerField.php 1 location

@@ 22-24 (lines=3) @@
19
{
20
    public function makeField(string $tableName, array $field, Column $column, Collection $indexes): array
21
    {
22
        if (isset(FieldGenerator::$fieldTypeMap[$field['type']])) {
23
            $field['type'] = FieldGenerator::$fieldTypeMap[$field['type']];
24
        }
25
26
        $isBoolean = $this->checkIsMySQLBoolean($tableName, $field, $column);
27
        if ($isBoolean) {