Code Duplication    Length = 3-3 lines in 2 locations

src/SQL.php 2 locations

@@ 48-50 (lines=3) @@
45
        $indexes[] = new Index($collection.'_PK', ['id'], false, true);
46
47
        list($columns, $indexes, $tmpIndexes) = $this->createAddColumns($collection, $columns, $indexes, $fields);
48
        if(count($tmpIndexes)>0){
49
            $indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false);
50
        }
51
        $table = new Table($collection, $columns, $indexes);
52
        return $schemaManager->createTable($table);
53
    }
@@ 108-110 (lines=3) @@
105
                }
106
            }
107
        }
108
        if (count($tmpIndexes) > 0) {
109
            $indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false);
110
        }
111
        foreach ($indexes as $index) {
112
            $schemaManager->createIndex($index, $collection);
113
        }