@@ -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 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | foreach ($this->findTargets($registry, $interface) as $entity) { |
54 | 54 | $primaryKeys = $entity->getPrimaryKeys(); |
55 | - $primaryFields = array_map(function (string $key) use ($entity) { |
|
55 | + $primaryFields = array_map(function(string $key) use ($entity) { |
|
56 | 56 | return $entity->getFields()->get($key); |
57 | 57 | }, $primaryKeys); |
58 | 58 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // create target outer field |
64 | 64 | foreach ($this->getFields($source, Relation::INNER_KEY) as $field) { |
65 | - foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
65 | + foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
66 | 66 | $this->ensureField( |
67 | 67 | $target, |
68 | 68 | $outerField, |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ]); |
74 | 74 | |
75 | 75 | // create target outer field |
76 | - foreach ((array)$this->options->get(Relation::INNER_KEY) as $i => $key) { |
|
76 | + foreach ((array) $this->options->get(Relation::INNER_KEY) as $i => $key) { |
|
77 | 77 | $this->ensureField( |
78 | 78 | $source, |
79 | 79 | $key, |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | - foreach ((array)$this->options->get(Relation::MORPH_KEY) as $key) { |
|
85 | + foreach ((array) $this->options->get(Relation::MORPH_KEY) as $key) { |
|
86 | 86 | $this->ensureMorphField( |
87 | 87 | $source, |
88 | 88 | $key, |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // create target outer field |
64 | 64 | foreach ($this->getFields($target, Relation::OUTER_KEY) as $field) { |
65 | - foreach ((array)$this->options->get(Relation::INNER_KEY) as $key) { |
|
65 | + foreach ((array) $this->options->get(Relation::INNER_KEY) as $key) { |
|
66 | 66 | $this->ensureField( |
67 | 67 | $source, |
68 | 68 | $key, |
@@ -52,7 +52,7 @@ |
||
52 | 52 | protected function getFields(Entity $entity, int $field): FieldMap |
53 | 53 | { |
54 | 54 | $fields = new FieldMap(); |
55 | - $keys = (array)$this->getOptions()->get($field); |
|
55 | + $keys = (array) $this->getOptions()->get($field); |
|
56 | 56 | |
57 | 57 | foreach ($keys as $key) { |
58 | 58 | try { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // create target outer field |
64 | 64 | foreach ($this->getFields($source, Relation::INNER_KEY) as $field) { |
65 | - foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
65 | + foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
66 | 66 | $this->ensureField( |
67 | 67 | $target, |
68 | 68 | $outerField, |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // create target outer field |
64 | 64 | foreach ($this->getFields($source, Relation::INNER_KEY) as $field) { |
65 | - foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
65 | + foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) { |
|
66 | 66 | $this->ensureField( |
67 | 67 | $target, |
68 | 68 | $outerField, |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // create target outer field |
64 | 64 | foreach ($this->getFields($target, Relation::OUTER_KEY) as $field) { |
65 | - foreach ((array)$this->options->get(Relation::INNER_KEY) as $innerField) { |
|
65 | + foreach ((array) $this->options->get(Relation::INNER_KEY) as $innerField) { |
|
66 | 66 | $this->ensureField( |
67 | 67 | $source, |
68 | 68 | $innerField, |