-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[4.3] style: update coding style #6690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3c8232d
to
4a9946a
Compare
I got the following error, but the fixed code still can be fixed if I run php-cs-fixer again. 1) CodeIgniter4/system/Database/BaseBuilder.php (no_useless_concat_operator, concat_space, statement_indentation, unary_operator_spaces, not_operator_with_successor_space)
---------- begin diff ----------
--- /home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseBuilder.php
+++ /home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseBuilder.php
@@ -1938,17 +1938,16 @@
if ($sql === '') {
$updateFields = $this->QBOptions['updateFields'] ?? $this->updateFields($keys)->QBOptions['updateFields'] ?? [];
- $sql = 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ")\n" . '{:_table_:}'
- . "ON DUPLICATE KEY UPDATE\n" . implode(
- ",\n",
- array_map(
- static fn ($key, $value) => $table . '.' . $key . ($value instanceof RawSql ?
- ' = ' . $value :
- ' = VALUES(' . $value . ')'),
- array_keys($updateFields),
- $updateFields
- )
- );
+ $sql = 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ")\n{:_table_:}" . "ON DUPLICATE KEY UPDATE\n" . implode(
+ ",\n",
+ array_map(
+ static fn ($key, $value) => $table . '.' . $key . ($value instanceof RawSql ?
+ ' = ' . $value :
+ ' = VALUES(' . $value . ')'),
+ array_keys($updateFields),
+ $updateFields
+ )
+ );
$this->QBOptions['sql'] = $sql;
}
----------- end diff ----------- |
|
I don't think so. Its just rearranging things I think. I updated CS fixer but its not giving me the results that it does on here. |
4a9946a
to
30d23ae
Compare
Merge! |
How can we avoid all these warnings?
Is there some way to set a time limit on a test? |
Make the test faster.
See https://github.com/NexusPHP/tachycardia/blob/1.x/docs/custom_time_limits.md |
I'd rather set a reasonable time limit and have less of these warnings. It would be nice to see warnings that really need to take a look at and not hundreds of nothing. |
Description
See #6678
composer cs-fix
.Checklist: