@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | * |
| 281 | 281 | * Used by all `CREATE` statements. |
| 282 | 282 | */ |
| 283 | - public Expression|null $name = null; |
|
| 283 | + public Expression | null $name = null; |
|
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | 286 | * The options of the entity (table, procedure, function, etc.). |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | public function build(): string |
| 410 | 410 | { |
| 411 | 411 | $fields = ''; |
| 412 | - if (! empty($this->fields)) { |
|
| 412 | + if (!empty($this->fields)) { |
|
| 413 | 413 | if (is_array($this->fields)) { |
| 414 | 414 | $fields = CreateDefinition::buildAll($this->fields) . ' '; |
| 415 | 415 | } elseif ($this->fields instanceof ArrayObj) { |
@@ -448,23 +448,23 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | $partition = ''; |
| 450 | 450 | |
| 451 | - if (! empty($this->partitionBy)) { |
|
| 451 | + if (!empty($this->partitionBy)) { |
|
| 452 | 452 | $partition .= "\nPARTITION BY " . $this->partitionBy; |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | - if (! empty($this->partitionsNum)) { |
|
| 455 | + if (!empty($this->partitionsNum)) { |
|
| 456 | 456 | $partition .= "\nPARTITIONS " . $this->partitionsNum; |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | - if (! empty($this->subpartitionBy)) { |
|
| 459 | + if (!empty($this->subpartitionBy)) { |
|
| 460 | 460 | $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy; |
| 461 | 461 | } |
| 462 | 462 | |
| 463 | - if (! empty($this->subpartitionsNum)) { |
|
| 463 | + if (!empty($this->subpartitionsNum)) { |
|
| 464 | 464 | $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum; |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | - if (! empty($this->partitions)) { |
|
| 467 | + if (!empty($this->partitions)) { |
|
| 468 | 468 | $partition .= "\n" . PartitionDefinition::buildAll($this->partitions); |
| 469 | 469 | } |
| 470 | 470 | |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | $token = $list->getNextOfType(Token::TYPE_NUMBER); |
| 659 | 659 | --$list->idx; // `getNextOfType` also advances one position. |
| 660 | 660 | $this->subpartitionsNum = $token->value; |
| 661 | - } elseif (! empty($field)) { |
|
| 661 | + } elseif (!empty($field)) { |
|
| 662 | 662 | /* |
| 663 | 663 | * Handling the content of `PARTITION BY` and `SUBPARTITION BY`. |
| 664 | 664 | */ |
@@ -687,7 +687,7 @@ discard block |
||
| 687 | 687 | $field = null; |
| 688 | 688 | } |
| 689 | 689 | } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { |
| 690 | - if (! empty($this->partitionBy)) { |
|
| 690 | + if (!empty($this->partitionBy)) { |
|
| 691 | 691 | $this->partitions = ArrayObj::parse( |
| 692 | 692 | $parser, |
| 693 | 693 | $list, |