@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | private function parseComposite(string $value): array |
34 | 34 | { |
35 | - for ($result = [], $i = 1;; ++$i) { |
|
35 | + for ($result = [], $i = 1; ; ++$i) { |
|
36 | 36 | $result[] = match ($value[$i]) { |
37 | 37 | ',', ')' => null, |
38 | 38 | '"' => $this->parseQuotedString($value, $i), |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | private function parseQuotedString(string $value, int &$i): string |
52 | 52 | { |
53 | - for ($result = '', ++$i;; ++$i) { |
|
53 | + for ($result = '', ++$i; ; ++$i) { |
|
54 | 54 | if ($value[$i] === '\\') { |
55 | 55 | ++$i; |
56 | 56 | } elseif ($value[$i] === '"') { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | private function parseUnquotedString(string $value, int &$i): string |
69 | 69 | { |
70 | - for ($result = '';; ++$i) { |
|
70 | + for ($result = ''; ; ++$i) { |
|
71 | 71 | if (in_array($value[$i], [',', ')'], true)) { |
72 | 72 | return $result; |
73 | 73 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ): string { |
70 | 70 | $insertSql = $this->insert($table, $insertColumns, $params); |
71 | 71 | |
72 | - [$uniqueNames, , $updateNames] = $this->prepareUpsertColumns($table, $insertColumns, $updateColumns); |
|
72 | + [$uniqueNames,, $updateNames] = $this->prepareUpsertColumns($table, $insertColumns, $updateColumns); |
|
73 | 73 | |
74 | 74 | if (empty($uniqueNames)) { |
75 | 75 | return $insertSql; |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | final class SqlParser extends AbstractSqlParser |
10 | 10 | { |
11 | - public function getNextPlaceholder(int|null &$position = null): string|null |
|
11 | + public function getNextPlaceholder(int|null&$position = null): string|null |
|
12 | 12 | { |
13 | 13 | $result = null; |
14 | 14 | $length = $this->length - 1; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | ? ++$this->position && $this->skipToAfterString('*/') |
33 | 33 | : null, |
34 | 34 | // Identifiers can contain dollar sign which can be used for quoting. Skip them. |
35 | - '_','a', 'b', 'c', 'd', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', |
|
35 | + '_', 'a', 'b', 'c', 'd', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', |
|
36 | 36 | 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', |
37 | 37 | 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' => $this->skipIdentifier(), |
38 | 38 | default => null, |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return []; |
37 | 37 | } |
38 | 38 | |
39 | - for ($result = [];; ++$i) { |
|
39 | + for ($result = []; ; ++$i) { |
|
40 | 40 | $result[] = match ($value[$i]) { |
41 | 41 | '{' => $this->parseArray($value, $i), |
42 | 42 | ',', '}' => null, |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | private function parseQuotedString(string $value, int &$i): string |
58 | 58 | { |
59 | - for ($result = '', ++$i;; ++$i) { |
|
59 | + for ($result = '', ++$i; ; ++$i) { |
|
60 | 60 | if ($value[$i] === '\\') { |
61 | 61 | ++$i; |
62 | 62 | } elseif ($value[$i] === '"') { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | private function parseUnquotedString(string $value, int &$i): string|null |
75 | 75 | { |
76 | - for ($result = '';; ++$i) { |
|
76 | + for ($result = ''; ; ++$i) { |
|
77 | 77 | if (in_array($value[$i], [',', '}'], true)) { |
78 | 78 | return $result !== 'NULL' |
79 | 79 | ? $result |
@@ -172,7 +172,7 @@ |
||
172 | 172 | return null; |
173 | 173 | } |
174 | 174 | |
175 | - array_walk_recursive($value, function (mixed &$val) { |
|
175 | + array_walk_recursive($value, function(mixed &$val) { |
|
176 | 176 | $val = $this->phpTypecastValue($val); |
177 | 177 | }); |
178 | 178 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; |
8 | 8 | use Rector\Set\ValueObject\LevelSetList; |
9 | 9 | |
10 | -return static function (RectorConfig $rectorConfig): void { |
|
10 | +return static function(RectorConfig $rectorConfig): void { |
|
11 | 11 | $rectorConfig->paths([ |
12 | 12 | __DIR__ . '/src', |
13 | 13 | /** |