Code Duplication    Length = 6-10 lines in 2 locations

Mapping/ChoiceMapping.php 1 location

@@ 48-57 (lines=10) @@
45
        array $choiceMappings,
46
        string $originDescription = ""
47
    ) {
48
        if (!$determinatorColumn instanceof Column) {
49
            $determinatorColumn = new Column(
50
                (string)$determinatorColumn,
51
                Type::getType('string'),
52
                [
53
                    'notnull' => false,
54
                    'length'  => 255,
55
                ]
56
            );
57
        }
58
59
        $this->determinatorColumn = clone $determinatorColumn;
60
        $this->originDescription = $originDescription;

Tests/Mapping/ChoiceMappingTest.php 1 location

@@ 43-48 (lines=6) @@
40
    public function setUp(
41
        $column = null
42
    ) {
43
        if (is_null($column)) {
44
            $column = new Column("some_column_name", Type::getType('string'), [
45
                'notnull' => false,
46
                'length' => 255
47
            ]);
48
        }
49
50
        $this->optionMappingA = $this->createMock(MappingInterface::class);
51
        $this->optionMappingB = $this->createMock(MappingInterface::class);