Code Duplication    Length = 3-3 lines in 2 locations

src/SQL.php 2 locations

@@ 65-67 (lines=3) @@
62
63
            $columns[] = new Column($field['name'], Type::getType($field['type']), $options );
64
        }
65
        if(count($tmpIndexes)>0){
66
            $indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false);
67
        }
68
        $table = new Table($collection, $columns, $indexes);
69
        return $schemaManager->createTable($table);
70
    }
@@ 102-104 (lines=3) @@
99
                }
100
            }
101
        }
102
        if (count($tmpIndexes) > 0) {
103
            $indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false);
104
        }
105
        foreach ($indexes as $index) {
106
            $schemaManager->createIndex($index, $collection);
107
        }