@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return bool Whether there's an operator at the current offset. |
71 | 71 | */ |
72 | - protected function isOperator(int &$length, string|null &$content): bool |
|
72 | + protected function isOperator(int &$length, string|null&$content): bool |
|
73 | 73 | { |
74 | 74 | $operators = [ |
75 | 75 | '!=', |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return bool Whether there's an identifier at the current offset. |
115 | 115 | */ |
116 | - protected function isIdentifier(int &$length, string|null &$content): bool |
|
116 | + protected function isIdentifier(int &$length, string|null&$content): bool |
|
117 | 117 | { |
118 | 118 | $identifierDelimiters = ['"' => '"', '[' => ']', '`' => '`']; |
119 | 119 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @return bool Whether there's a string literal at the current offset. |
155 | 155 | */ |
156 | - protected function isStringLiteral(int &$length, string|null &$content): bool |
|
156 | + protected function isStringLiteral(int &$length, string|null&$content): bool |
|
157 | 157 | { |
158 | 158 | if ($this->substring(1) !== "'") { |
159 | 159 | return false; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * |
185 | 185 | * @return bool Whether the given string is a keyword. |
186 | 186 | */ |
187 | - protected function isKeyword(string $string, string|null &$content): bool |
|
187 | + protected function isKeyword(string $string, string|null&$content): bool |
|
188 | 188 | { |
189 | 189 | $keywords = [ |
190 | 190 | 'ABORT' => true, |
@@ -85,10 +85,10 @@ discard block |
||
85 | 85 | $sql = ''; |
86 | 86 | |
87 | 87 | if ($this->hasLimit($limit)) { |
88 | - $sql = 'LIMIT ' . ($limit instanceof ExpressionInterface ? $this->buildExpression($limit) : (string)$limit); |
|
88 | + $sql = 'LIMIT ' . ($limit instanceof ExpressionInterface ? $this->buildExpression($limit) : (string) $limit); |
|
89 | 89 | if ($this->hasOffset($offset)) { |
90 | 90 | $sql .= ' OFFSET ' . |
91 | - ($offset instanceof ExpressionInterface ? $this->buildExpression($offset) : (string)$offset); |
|
91 | + ($offset instanceof ExpressionInterface ? $this->buildExpression($offset) : (string) $offset); |
|
92 | 92 | } |
93 | 93 | } elseif ($this->hasOffset($offset)) { |
94 | 94 | /** |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * {@see https://www.sqlite.org/syntaxdiagrams.html#select-stmt} |
98 | 98 | */ |
99 | 99 | $sql = 'LIMIT 999999999999 OFFSET ' . // 2^63-1 |
100 | - ($offset instanceof ExpressionInterface ? $this->buildExpression($offset) : (string)$offset); |
|
100 | + ($offset instanceof ExpressionInterface ? $this->buildExpression($offset) : (string) $offset); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | return $sql; |