@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | * |
| 270 | 270 | * Used by all `CREATE` statements. |
| 271 | 271 | */ |
| 272 | - public Expression|null $name = null; |
|
| 272 | + public Expression | null $name = null; |
|
| 273 | 273 | |
| 274 | 274 | /** |
| 275 | 275 | * The options of the entity (table, procedure, function, etc.). |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | public function build(): string |
| 399 | 399 | { |
| 400 | 400 | $fields = ''; |
| 401 | - if (! empty($this->fields)) { |
|
| 401 | + if (!empty($this->fields)) { |
|
| 402 | 402 | if (is_array($this->fields)) { |
| 403 | 403 | $fields = CreateDefinition::buildAll($this->fields) . ' '; |
| 404 | 404 | } elseif ($this->fields instanceof ArrayObj) { |
@@ -437,23 +437,23 @@ discard block |
||
| 437 | 437 | |
| 438 | 438 | $partition = ''; |
| 439 | 439 | |
| 440 | - if (! empty($this->partitionBy)) { |
|
| 440 | + if (!empty($this->partitionBy)) { |
|
| 441 | 441 | $partition .= "\nPARTITION BY " . $this->partitionBy; |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | - if (! empty($this->partitionsNum)) { |
|
| 444 | + if (!empty($this->partitionsNum)) { |
|
| 445 | 445 | $partition .= "\nPARTITIONS " . $this->partitionsNum; |
| 446 | 446 | } |
| 447 | 447 | |
| 448 | - if (! empty($this->subpartitionBy)) { |
|
| 448 | + if (!empty($this->subpartitionBy)) { |
|
| 449 | 449 | $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy; |
| 450 | 450 | } |
| 451 | 451 | |
| 452 | - if (! empty($this->subpartitionsNum)) { |
|
| 452 | + if (!empty($this->subpartitionsNum)) { |
|
| 453 | 453 | $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum; |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | - if (! empty($this->partitions)) { |
|
| 456 | + if (!empty($this->partitions)) { |
|
| 457 | 457 | $partition .= "\n" . PartitionDefinition::buildAll($this->partitions); |
| 458 | 458 | } |
| 459 | 459 | |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | $token = $list->getNextOfType(TokenType::Number); |
| 648 | 648 | --$list->idx; // `getNextOfType` also advances one position. |
| 649 | 649 | $this->subpartitionsNum = $token->value; |
| 650 | - } elseif (! empty($field)) { |
|
| 650 | + } elseif (!empty($field)) { |
|
| 651 | 651 | /* |
| 652 | 652 | * Handling the content of `PARTITION BY` and `SUBPARTITION BY`. |
| 653 | 653 | */ |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | $field = null; |
| 677 | 677 | } |
| 678 | 678 | } elseif (($token->type === TokenType::Operator) && ($token->value === '(')) { |
| 679 | - if (! empty($this->partitionBy)) { |
|
| 679 | + if (!empty($this->partitionBy)) { |
|
| 680 | 680 | $this->partitions = ArrayObj::parse( |
| 681 | 681 | $parser, |
| 682 | 682 | $list, |