@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | /** |
| 316 | - * @param array $step |
|
| 316 | + * @param MigrationStep $step |
|
| 317 | 317 | * @return string |
| 318 | 318 | */ |
| 319 | 319 | protected function getReferencesType($step) |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | /** |
| 325 | - * @param array $step |
|
| 325 | + * @param MigrationStep $step |
|
| 326 | 326 | * @return bool |
| 327 | 327 | */ |
| 328 | 328 | protected function allowEmptyReferences($step) |
@@ -343,6 +343,9 @@ discard block |
||
| 343 | 343 | return preg_replace('/(?<!^)[A-Z]/', ' $0', $className); |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | + /** |
|
| 347 | + * @param AbstractCollection $collection |
|
| 348 | + */ |
|
| 346 | 349 | protected function getCollectionName($collection) |
| 347 | 350 | { |
| 348 | 351 | $className = get_class($collection); |
@@ -329,8 +329,9 @@ |
||
| 329 | 329 | { |
| 330 | 330 | if (isset($step->dsl['references_type']) && $step->dsl['references_type'] == self::REFERENCE_TYPE_ARRAY && |
| 331 | 331 | isset($step->dsl['references_allow_empty']) && $step->dsl['references_allow_empty'] == true |
| 332 | - ) |
|
| 333 | - return true; |
|
| 332 | + ) { |
|
| 333 | + return true; |
|
| 334 | + } |
|
| 334 | 335 | return false; |
| 335 | 336 | } |
| 336 | 337 | |