@@ -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 | |
@@ -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; |
@@ -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 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $state = 4; |
| 245 | 245 | } elseif ($token->type === Token::TYPE_SYMBOL || $token->type === Token::TYPE_NONE) { |
| 246 | 246 | $expr->name = $token->value; |
| 247 | - if (! $expr->isConstraint) { |
|
| 247 | + if (!$expr->isConstraint) { |
|
| 248 | 248 | $state = 2; |
| 249 | 249 | } |
| 250 | 250 | } elseif ($token->type === Token::TYPE_KEYWORD) { |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | |
| 289 | 289 | $state = 5; |
| 290 | 290 | } elseif ($state === 5) { |
| 291 | - if (! empty($expr->type) || ! empty($expr->key)) { |
|
| 291 | + if (!empty($expr->type) || !empty($expr->key)) { |
|
| 292 | 292 | $ret[] = $expr; |
| 293 | 293 | } |
| 294 | 294 | |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | // Last iteration was not saved. |
| 314 | - if (! empty($expr->type) || ! empty($expr->key)) { |
|
| 314 | + if (!empty($expr->type) || !empty($expr->key)) { |
|
| 315 | 315 | $ret[] = $expr; |
| 316 | 316 | } |
| 317 | 317 | |
@@ -349,18 +349,18 @@ discard block |
||
| 349 | 349 | $tmp .= Context::escape($component->name) . ' '; |
| 350 | 350 | } |
| 351 | 351 | |
| 352 | - if (! empty($component->type)) { |
|
| 352 | + if (!empty($component->type)) { |
|
| 353 | 353 | $tmp .= DataType::build( |
| 354 | 354 | $component->type, |
| 355 | 355 | ['lowercase' => true] |
| 356 | 356 | ) . ' '; |
| 357 | 357 | } |
| 358 | 358 | |
| 359 | - if (! empty($component->key)) { |
|
| 359 | + if (!empty($component->key)) { |
|
| 360 | 360 | $tmp .= $component->key . ' '; |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | - if (! empty($component->references)) { |
|
| 363 | + if (!empty($component->references)) { |
|
| 364 | 364 | $tmp .= 'REFERENCES ' . $component->references . ' '; |
| 365 | 365 | } |
| 366 | 366 | |
@@ -249,7 +249,7 @@ |
||
| 249 | 249 | return trim( |
| 250 | 250 | 'PARTITION ' . $component->name |
| 251 | 251 | . (empty($component->type) ? '' : ' VALUES ' . $component->type . ' ' . $component->expr . ' ') |
| 252 | - . (! empty($component->options) && ! empty($component->type) ? '' : ' ') |
|
| 252 | + . (!empty($component->options) && !empty($component->type) ? '' : ' ') |
|
| 253 | 253 | . $component->options . $subpartitions |
| 254 | 254 | ); |
| 255 | 255 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | $value = strtoupper($value); |
| 175 | - if (! isset($types[$value])) { |
|
| 175 | + if (!isset($types[$value])) { |
|
| 176 | 176 | $types[$value] = $type; |
| 177 | 177 | } else { |
| 178 | 178 | $types[$value] |= $type; |
@@ -182,11 +182,11 @@ discard block |
||
| 182 | 182 | $ret = []; |
| 183 | 183 | foreach ($types as $word => $type) { |
| 184 | 184 | $len = strlen($word); |
| 185 | - if (! isset($ret[$type])) { |
|
| 185 | + if (!isset($ret[$type])) { |
|
| 186 | 186 | $ret[$type] = []; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - if (! isset($ret[$type][$len])) { |
|
| 189 | + if (!isset($ret[$type][$len])) { |
|
| 190 | 190 | $ret[$type][$len] = []; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | return implode(', ', $component); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - if (! empty($component->raw)) { |
|
| 184 | + if (!empty($component->raw)) { |
|
| 185 | 185 | return '(' . implode(', ', $component->raw) . ')'; |
| 186 | 186 | } |
| 187 | 187 | |