@@ -75,7 +75,7 @@ |
||
75 | 75 | $this->byteIdx = 0; |
76 | 76 | $this->charIdx = 0; |
77 | 77 | $this->byteLen = mb_strlen($str, '8bit'); |
78 | - if (! mb_check_encoding($str, 'UTF-8')) { |
|
78 | + if (!mb_check_encoding($str, 'UTF-8')) { |
|
79 | 79 | $this->charLen = 0; |
80 | 80 | } else { |
81 | 81 | $this->charLen = mb_strlen($str, 'UTF-8'); |
@@ -95,7 +95,7 @@ |
||
95 | 95 | break; |
96 | 96 | } |
97 | 97 | } elseif ($state === 1) { |
98 | - if (! $this->isLock) { |
|
98 | + if (!$this->isLock) { |
|
99 | 99 | // UNLOCK statement should not have any more tokens |
100 | 100 | $parser->error('Unexpected token.', $token); |
101 | 101 | break; |
@@ -156,7 +156,7 @@ |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | // Last iteration was not saved. |
159 | - if (! empty($expr->old)) { |
|
159 | + if (!empty($expr->old)) { |
|
160 | 160 | $ret[] = $expr; |
161 | 161 | } |
162 | 162 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | // Handle optional AS keyword before alias |
228 | 228 | if ($token->type === Token::TYPE_KEYWORD |
229 | 229 | && $token->keyword === 'AS') { |
230 | - if ($asFound || ! empty($ret->alias)) { |
|
230 | + if ($asFound || !empty($ret->alias)) { |
|
231 | 231 | $parser->error('Potential duplicate alias of CASE expression.', $token); |
232 | 232 | break; |
233 | 233 | } |
@@ -245,11 +245,11 @@ discard block |
||
245 | 245 | |
246 | 246 | if ($asFound |
247 | 247 | || $token->type === Token::TYPE_STRING |
248 | - || ($token->type === Token::TYPE_SYMBOL && ! $token->flags & Token::FLAG_SYMBOL_VARIABLE) |
|
248 | + || ($token->type === Token::TYPE_SYMBOL && !$token->flags & Token::FLAG_SYMBOL_VARIABLE) |
|
249 | 249 | || $token->type === Token::TYPE_NONE |
250 | 250 | ) { |
251 | 251 | // An alias is expected (the keyword `AS` was previously found). |
252 | - if (! empty($ret->alias)) { |
|
252 | + if (!empty($ret->alias)) { |
|
253 | 253 | $parser->error('An alias was previously found.', $token); |
254 | 254 | break; |
255 | 255 | } |
@@ -180,7 +180,7 @@ |
||
180 | 180 | { |
181 | 181 | if (is_array($component)) { |
182 | 182 | return implode(', ', $component); |
183 | - } elseif (! empty($component->raw)) { |
|
183 | + } elseif (!empty($component->raw)) { |
|
184 | 184 | return '(' . implode(', ', $component->raw) . ')'; |
185 | 185 | } |
186 | 186 |
@@ -160,7 +160,7 @@ |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | $tmp = ''; |
163 | - if (! empty($component->inOut)) { |
|
163 | + if (!empty($component->inOut)) { |
|
164 | 164 | $tmp .= $component->inOut . ' '; |
165 | 165 | } |
166 | 166 |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } else { |
155 | 155 | // The expression ended. |
156 | 156 | $expr->expr = trim($expr->expr); |
157 | - if (! empty($expr->expr)) { |
|
157 | + if (!empty($expr->expr)) { |
|
158 | 158 | $ret[] = $expr; |
159 | 159 | } |
160 | 160 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | if (($token->type === Token::TYPE_KEYWORD) |
173 | 173 | && ($token->flags & Token::FLAG_KEYWORD_RESERVED) |
174 | - && ! ($token->flags & Token::FLAG_KEYWORD_FUNCTION) |
|
174 | + && !($token->flags & Token::FLAG_KEYWORD_FUNCTION) |
|
175 | 175 | ) { |
176 | 176 | if ($token->value === 'BETWEEN') { |
177 | 177 | $betweenBefore = true; |
@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | $expr->expr .= $token->token; |
196 | 196 | if (($token->type === Token::TYPE_NONE) |
197 | 197 | || (($token->type === Token::TYPE_KEYWORD) |
198 | - && (! ($token->flags & Token::FLAG_KEYWORD_RESERVED))) |
|
198 | + && (!($token->flags & Token::FLAG_KEYWORD_RESERVED))) |
|
199 | 199 | || ($token->type === Token::TYPE_STRING) |
200 | 200 | || ($token->type === Token::TYPE_SYMBOL) |
201 | 201 | ) { |
202 | - if (! in_array($token->value, $expr->identifiers)) { |
|
202 | + if (!in_array($token->value, $expr->identifiers)) { |
|
203 | 203 | $expr->identifiers[] = $token->value; |
204 | 204 | } |
205 | 205 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | // Last iteration was not processed. |
209 | 209 | $expr->expr = trim($expr->expr); |
210 | - if (! empty($expr->expr)) { |
|
210 | + if (!empty($expr->expr)) { |
|
211 | 211 | $ret[] = $expr; |
212 | 212 | } |
213 | 213 |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | |
314 | 314 | // Parsing the delimiter. |
315 | 315 | $delimiter = ''; |
316 | - while (($i < $len) && (! Context::isWhitespace($this->query[$i]))) { |
|
316 | + while (($i < $len) && (!Context::isWhitespace($this->query[$i]))) { |
|
317 | 317 | $delimiter .= $this->query[$i++]; |
318 | 318 | } |
319 | 319 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | |
328 | 328 | // Whether this statement should be returned or not. |
329 | 329 | $ret = ''; |
330 | - if (! empty($this->options['parse_delimiter'])) { |
|
330 | + if (!empty($this->options['parse_delimiter'])) { |
|
331 | 331 | // Appending the `DELIMITER` statement that was just |
332 | 332 | // found to the current statement. |
333 | 333 | $ret = trim( |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $ret = $this->current; |
370 | 370 | |
371 | 371 | // If needed, adds a delimiter at the end of the statement. |
372 | - if (! empty($this->options['add_delimiter'])) { |
|
372 | + if (!empty($this->options['add_delimiter'])) { |
|
373 | 373 | $ret .= $this->delimiter; |
374 | 374 | } |
375 | 375 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public static function gettext($msgid) |
60 | 60 | { |
61 | - if (! class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) { |
|
61 | + if (!class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) { |
|
62 | 62 | return $msgid; |
63 | 63 | } |
64 | 64 |