@@ -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'); |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | 'opts' => [], |
| 118 | 118 | ]; |
| 119 | 119 | |
| 120 | - if (! empty($statement->parameters)) { |
|
| 120 | + if (!empty($statement->parameters)) { |
|
| 121 | 121 | $idx = 0; |
| 122 | 122 | foreach ($statement->parameters as $param) { |
| 123 | 123 | $retval['dir'][$idx] = $param->inOut; |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | // This is a cheap fix for `SELECT` statements that contain `UNION`. |
| 329 | 329 | // The `ORDER BY` and `LIMIT` clauses should be at the end of the |
| 330 | 330 | // statement. |
| 331 | - if (! empty($this->union)) { |
|
| 331 | + if (!empty($this->union)) { |
|
| 332 | 332 | $clauses = static::$CLAUSES; |
| 333 | 333 | unset($clauses['ORDER BY'], $clauses['LIMIT']); |
| 334 | 334 | $clauses['ORDER BY'] = [ |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $state = 3; |
| 160 | 160 | } elseif (($token->value === ',') || ($token->value === ')')) { |
| 161 | 161 | $state = $token->value === ',' ? 2 : 4; |
| 162 | - if (! empty($lastColumn)) { |
|
| 162 | + if (!empty($lastColumn)) { |
|
| 163 | 163 | $ret->columns[] = $lastColumn; |
| 164 | 164 | $lastColumn = []; |
| 165 | 165 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | public static function build($component, array $options = []) |
| 195 | 195 | { |
| 196 | 196 | $ret = $component->type . ' '; |
| 197 | - if (! empty($component->name)) { |
|
| 197 | + if (!empty($component->name)) { |
|
| 198 | 198 | $ret .= Context::escape($component->name) . ' '; |
| 199 | 199 | } |
| 200 | 200 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | if ($state === 0) { |
| 129 | 129 | $ret->name = strtoupper((string) $token->value); |
| 130 | - if (($token->type !== Token::TYPE_KEYWORD) || (! ($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) { |
|
| 130 | + if (($token->type !== Token::TYPE_KEYWORD) || (!($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) { |
|
| 131 | 131 | $parser->error('Unrecognized data type.', $token); |
| 132 | 132 | } |
| 133 | 133 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $component->name : strtolower($component->name); |
| 168 | 168 | |
| 169 | 169 | $parameters = ''; |
| 170 | - if (! empty($component->parameters)) { |
|
| 170 | + if (!empty($component->parameters)) { |
|
| 171 | 171 | $parameters = '(' . implode(',', $component->parameters) . ')'; |
| 172 | 172 | } |
| 173 | 173 | |