@@ -39,10 +39,10 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $registry->getTableSchema($target) |
| 42 | - ->foreignKey([$outerField->getColumn()]) |
|
| 43 | - ->references($registry->getTable($source), [$innerField->getColumn()]) |
|
| 44 | - ->onUpdate($this->getOptions()->get(RelationSchema::FK_ACTION)) |
|
| 45 | - ->onDelete($this->getOptions()->get(RelationSchema::FK_ACTION)); |
|
| 42 | + ->foreignKey([$outerField->getColumn()]) |
|
| 43 | + ->references($registry->getTable($source), [$innerField->getColumn()]) |
|
| 44 | + ->onUpdate($this->getOptions()->get(RelationSchema::FK_ACTION)) |
|
| 45 | + ->onDelete($this->getOptions()->get(RelationSchema::FK_ACTION)); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | private function compareProperties(): bool |
| 57 | 57 | { |
| 58 | - $tuples = array_map(static function (Field $field): array { |
|
| 58 | + $tuples = array_map(static function(Field $field): array { |
|
| 59 | 59 | return [$field->getType(), $field->isPrimary()]; |
| 60 | 60 | }, $this->fields); |
| 61 | 61 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | private function compareOptions(): bool |
| 73 | 73 | { |
| 74 | 74 | // Collect fields options |
| 75 | - $optionsSet = array_map(static function (Field $field): array { |
|
| 75 | + $optionsSet = array_map(static function(Field $field): array { |
|
| 76 | 76 | return iterator_to_array($field->getOptions()); |
| 77 | 77 | }, $this->fields); |
| 78 | 78 | |