@@ -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 $key) { |
|
| 65 | + foreach ((array) $this->options->get(Relation::INNER_KEY) as $key) { |
|
| 66 | 66 | $this->ensureField( |
| 67 | 67 | $source, |
| 68 | 68 | $key, |
@@ -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, |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | foreach ($this->getFields($source, Relation::INNER_KEY) as $field) { |
| 104 | - foreach ((array)$this->options->get(Relation::THROUGH_INNER_KEY) as $innerField) { |
|
| 104 | + foreach ((array) $this->options->get(Relation::THROUGH_INNER_KEY) as $innerField) { |
|
| 105 | 105 | $this->ensureField( |
| 106 | 106 | $through, |
| 107 | 107 | $innerField, |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | foreach ($this->getFields($source, Relation::OUTER_KEY) as $field) { |
| 115 | - foreach ((array)$this->options->get(Relation::THROUGH_OUTER_KEY) as $outerField) { |
|
| 115 | + foreach ((array) $this->options->get(Relation::THROUGH_OUTER_KEY) as $outerField) { |
|
| 116 | 116 | $this->ensureField( |
| 117 | 117 | $through, |
| 118 | 118 | $outerField, |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | $name = "{{$name}}"; |
| 193 | 193 | $replace = $this->get($option); |
| 194 | 194 | if (is_array($replace)) { |
| 195 | - return implode('|', array_map(static function (string $replace) use ($name, $target) { |
|
| 195 | + return implode('|', array_map(static function(string $replace) use ($name, $target) { |
|
| 196 | 196 | return str_replace($name, $replace, $target); |
| 197 | 197 | }, $replace)); |
| 198 | 198 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function getColumnNames(): array |
| 47 | 47 | { |
| 48 | - return array_values(array_map(static function (Field $field) { |
|
| 48 | + return array_values(array_map(static function(Field $field) { |
|
| 49 | 49 | return $field->getColumn(); |
| 50 | 50 | }, $this->fields)); |
| 51 | 51 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | 'target:primaryKey' => $outerKeys |
| 73 | 73 | ]); |
| 74 | 74 | |
| 75 | - $outerKeys = array_combine($outerKeys, (array)$this->options->get(Relation::INNER_KEY)); |
|
| 75 | + $outerKeys = array_combine($outerKeys, (array) $this->options->get(Relation::INNER_KEY)); |
|
| 76 | 76 | |
| 77 | 77 | // create target outer field |
| 78 | 78 | foreach ($outerKeys as $key => $morphKey) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - foreach ((array)$this->options->get(Relation::MORPH_KEY) as $key) { |
|
| 89 | + foreach ((array) $this->options->get(Relation::MORPH_KEY) as $key) { |
|
| 90 | 90 | $this->ensureMorphField( |
| 91 | 91 | $source, |
| 92 | 92 | $key, |