@@ -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 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | private function compareProperties(): bool |
59 | 59 | { |
60 | - $tuples = array_map(static function (Field $field): array { |
|
60 | + $tuples = array_map(static function(Field $field): array { |
|
61 | 61 | return [ |
62 | 62 | $field->getType(), |
63 | 63 | // $field->isPrimary(), // should not compared |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | private function compareOptions(): bool |
78 | 78 | { |
79 | 79 | // Collect fields options |
80 | - $optionsSet = array_map(static function (Field $field): array { |
|
80 | + $optionsSet = array_map(static function(Field $field): array { |
|
81 | 81 | return iterator_to_array($field->getOptions()); |
82 | 82 | }, $this->fields); |
83 | 83 |