@@ -66,7 +66,7 @@ |
||
66 | 66 | if ($goDeeper){ |
67 | 67 | $hasGoneDeeper = true; |
68 | 68 | $value = $this->generateRandomObject($depth - 1); |
69 | - }else{ |
|
69 | + } else{ |
|
70 | 70 | $value = $this->randomValue(); |
71 | 71 | } |
72 | 72 | $obj->$propName = $value; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | else { |
147 | 147 | if (!$column->getNotnull() && $this->nullProbabilityOccured()){ |
148 | 148 | $value = null; |
149 | - }else{ |
|
149 | + } else{ |
|
150 | 150 | $generator = $this->generatorFinder->findGenerator($table, $column); |
151 | 151 | $value = $generator($column); |
152 | 152 | } |
@@ -289,8 +289,9 @@ discard block |
||
289 | 289 | $tables = $this->schemaManager->listTables(); |
290 | 290 | foreach ($tables as $table){ |
291 | 291 | foreach ($table->getIndexes() as $index){ |
292 | - if ($index->isUnique() && count($index->getColumns()) > 1) |
|
293 | - $this->multipleUniqueContraintStore[$table->getName()][] = $index; |
|
292 | + if ($index->isUnique() && count($index->getColumns()) > 1) { |
|
293 | + $this->multipleUniqueContraintStore[$table->getName()][] = $index; |
|
294 | + } |
|
294 | 295 | $this->schemaManager->dropIndex($index->getName(), $table->getName()); |
295 | 296 | } |
296 | 297 | } |