@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | public function build(): string |
| 412 | 412 | { |
| 413 | 413 | $fields = ''; |
| 414 | - if (! empty($this->fields)) { |
|
| 414 | + if (!empty($this->fields)) { |
|
| 415 | 415 | if (is_array($this->fields)) { |
| 416 | 416 | $fields = CreateDefinition::build($this->fields) . ' '; |
| 417 | 417 | } elseif ($this->fields instanceof ArrayObj) { |
@@ -450,23 +450,23 @@ discard block |
||
| 450 | 450 | |
| 451 | 451 | $partition = ''; |
| 452 | 452 | |
| 453 | - if (! empty($this->partitionBy)) { |
|
| 453 | + if (!empty($this->partitionBy)) { |
|
| 454 | 454 | $partition .= "\nPARTITION BY " . $this->partitionBy; |
| 455 | 455 | } |
| 456 | 456 | |
| 457 | - if (! empty($this->partitionsNum)) { |
|
| 457 | + if (!empty($this->partitionsNum)) { |
|
| 458 | 458 | $partition .= "\nPARTITIONS " . $this->partitionsNum; |
| 459 | 459 | } |
| 460 | 460 | |
| 461 | - if (! empty($this->subpartitionBy)) { |
|
| 461 | + if (!empty($this->subpartitionBy)) { |
|
| 462 | 462 | $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy; |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | - if (! empty($this->subpartitionsNum)) { |
|
| 465 | + if (!empty($this->subpartitionsNum)) { |
|
| 466 | 466 | $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum; |
| 467 | 467 | } |
| 468 | 468 | |
| 469 | - if (! empty($this->partitions)) { |
|
| 469 | + if (!empty($this->partitions)) { |
|
| 470 | 470 | $partition .= "\n" . PartitionDefinition::build($this->partitions); |
| 471 | 471 | } |
| 472 | 472 | |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | . OptionsArray::build($this->options) . ' ' |
| 491 | 491 | . Expression::build($this->name) . ' ' |
| 492 | 492 | . $fields . ' AS ' . $builtStatement |
| 493 | - . (! empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 493 | + . (!empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 494 | 494 | . OptionsArray::build($this->entityOptions); |
| 495 | 495 | } |
| 496 | 496 | |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | ] |
| 549 | 549 | ); |
| 550 | 550 | |
| 551 | - if (! isset($this->name) || ($this->name === '')) { |
|
| 551 | + if (!isset($this->name) || ($this->name === '')) { |
|
| 552 | 552 | $parser->error('The name of the entity was expected.', $list->tokens[$list->idx]); |
| 553 | 553 | } else { |
| 554 | 554 | ++$list->idx; // Skipping field. |
@@ -660,7 +660,7 @@ discard block |
||
| 660 | 660 | $token = $list->getNextOfType(Token::TYPE_NUMBER); |
| 661 | 661 | --$list->idx; // `getNextOfType` also advances one position. |
| 662 | 662 | $this->subpartitionsNum = $token->value; |
| 663 | - } elseif (! empty($field)) { |
|
| 663 | + } elseif (!empty($field)) { |
|
| 664 | 664 | /* |
| 665 | 665 | * Handling the content of `PARTITION BY` and `SUBPARTITION BY`. |
| 666 | 666 | */ |
@@ -689,7 +689,7 @@ discard block |
||
| 689 | 689 | $field = null; |
| 690 | 690 | } |
| 691 | 691 | } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { |
| 692 | - if (! empty($this->partitionBy)) { |
|
| 692 | + if (!empty($this->partitionBy)) { |
|
| 693 | 693 | $this->partitions = ArrayObj::parse( |
| 694 | 694 | $parser, |
| 695 | 695 | $list, |