@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | public function build() |
| 415 | 415 | { |
| 416 | 416 | $fields = ''; |
| 417 | - if (! empty($this->fields)) { |
|
| 417 | + if (!empty($this->fields)) { |
|
| 418 | 418 | if (is_array($this->fields)) { |
| 419 | 419 | $fields = CreateDefinition::build($this->fields) . ' '; |
| 420 | 420 | } elseif ($this->fields instanceof ArrayObj) { |
@@ -453,23 +453,23 @@ discard block |
||
| 453 | 453 | |
| 454 | 454 | $partition = ''; |
| 455 | 455 | |
| 456 | - if (! empty($this->partitionBy)) { |
|
| 456 | + if (!empty($this->partitionBy)) { |
|
| 457 | 457 | $partition .= "\nPARTITION BY " . $this->partitionBy; |
| 458 | 458 | } |
| 459 | 459 | |
| 460 | - if (! empty($this->partitionsNum)) { |
|
| 460 | + if (!empty($this->partitionsNum)) { |
|
| 461 | 461 | $partition .= "\nPARTITIONS " . $this->partitionsNum; |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | - if (! empty($this->subpartitionBy)) { |
|
| 464 | + if (!empty($this->subpartitionBy)) { |
|
| 465 | 465 | $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy; |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | - if (! empty($this->subpartitionsNum)) { |
|
| 468 | + if (!empty($this->subpartitionsNum)) { |
|
| 469 | 469 | $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum; |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | - if (! empty($this->partitions)) { |
|
| 472 | + if (!empty($this->partitions)) { |
|
| 473 | 473 | $partition .= "\n" . PartitionDefinition::build($this->partitions); |
| 474 | 474 | } |
| 475 | 475 | |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | . OptionsArray::build($this->options) . ' ' |
| 494 | 494 | . Expression::build($this->name) . ' ' |
| 495 | 495 | . $fields . ' AS ' . $builtStatement |
| 496 | - . (! empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 496 | + . (!empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 497 | 497 | . OptionsArray::build($this->entityOptions); |
| 498 | 498 | } |
| 499 | 499 | |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | ] |
| 552 | 552 | ); |
| 553 | 553 | |
| 554 | - if (! isset($this->name) || ($this->name === '')) { |
|
| 554 | + if (!isset($this->name) || ($this->name === '')) { |
|
| 555 | 555 | $parser->error('The name of the entity was expected.', $list->tokens[$list->idx]); |
| 556 | 556 | } else { |
| 557 | 557 | ++$list->idx; // Skipping field. |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | $token = $list->getNextOfType(Token::TYPE_NUMBER); |
| 664 | 664 | --$list->idx; // `getNextOfType` also advances one position. |
| 665 | 665 | $this->subpartitionsNum = $token->value; |
| 666 | - } elseif (! empty($field)) { |
|
| 666 | + } elseif (!empty($field)) { |
|
| 667 | 667 | /* |
| 668 | 668 | * Handling the content of `PARTITION BY` and `SUBPARTITION BY`. |
| 669 | 669 | */ |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | $field = null; |
| 693 | 693 | } |
| 694 | 694 | } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { |
| 695 | - if (! empty($this->partitionBy)) { |
|
| 695 | + if (!empty($this->partitionBy)) { |
|
| 696 | 696 | $this->partitions = ArrayObj::parse( |
| 697 | 697 | $parser, |
| 698 | 698 | $list, |