@@ -233,7 +233,7 @@ |
||
| 233 | 233 | */ |
| 234 | 234 | protected function fillRelationships(array $models, array $relationships): void |
| 235 | 235 | { |
| 236 | - $records = array_map(function (Model $model): Record { |
|
| 236 | + $records = array_map(function(Model $model): Record { |
|
| 237 | 237 | return $model->getDatabaseRecord(); |
| 238 | 238 | }, array_values($models)); |
| 239 | 239 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $format .= ' AS %3$s'; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - return implode(', ', array_map(function (string $field) use ($format, $table, $prefix): string { |
|
| 102 | + return implode(', ', array_map(function(string $field) use ($format, $table, $prefix): string { |
|
| 103 | 103 | return sprintf( |
| 104 | 104 | $format, |
| 105 | 105 | $this->escapeIdentifier($table), |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | if (\is_array($value)) { |
| 158 | 158 | if (\in_array(null, $value, true)) { |
| 159 | - $value = array_filter($value, function ($value): bool { |
|
| 159 | + $value = array_filter($value, function($value): bool { |
|
| 160 | 160 | return $value !== null; |
| 161 | 161 | }); |
| 162 | 162 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | array $referencedFields, |
| 51 | 51 | bool $unique |
| 52 | 52 | ) { |
| 53 | - $formatStrings = function (string ... $strings): array { |
|
| 53 | + $formatStrings = function(string ... $strings): array { |
|
| 54 | 54 | return $strings; |
| 55 | 55 | }; |
| 56 | 56 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $reverse = array_filter( |
| 151 | 151 | $this->referencedSchema->getRelationships(), |
| 152 | - function (self $relationship): bool { |
|
| 152 | + function(self $relationship): bool { |
|
| 153 | 153 | return $this->isReverseRelationship($relationship); |
| 154 | 154 | } |
| 155 | 155 | ); |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | { |
| 172 | 172 | $name = $this->getSchema()->getRelationship($name)->getName(); |
| 173 | 173 | |
| 174 | - (function (self ... $records) use ($name): void { |
|
| 174 | + (function(self ... $records) use ($name): void { |
|
| 175 | 175 | $this->referencedRecords[$name] = $records; |
| 176 | 176 | })(... $records); |
| 177 | 177 | } |