Skip to content

Commit fa2e073

Browse files
committed
refactor: by rector
1 parent 92cc84e commit fa2e073

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

system/Database/Postgre/Builder.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,9 @@ protected function _updateBatch(string $table, array $keys, array $values): stri
351351
$sql .= implode(
352352
",\n",
353353
array_map(
354-
static function ($key, $value) use ($table, $alias, $that) {
355-
return $key . ($value instanceof RawSql ?
356-
' = ' . $value :
357-
' = ' . $alias . '.' . $that->cast($value, $that->getFieldType($table, $key)));
358-
},
354+
static fn ($key, $value) => $key . ($value instanceof RawSql ?
355+
' = ' . $value :
356+
' = ' . $alias . '.' . $that->cast($value, $that->getFieldType($table, $key))),
359357
array_keys($updateFields),
360358
$updateFields
361359
)

0 commit comments

Comments
 (0)