@@ -145,7 +145,7 @@ |
||
| 145 | 145 | public static function build($component): string |
| 146 | 146 | { |
| 147 | 147 | $tmp = ''; |
| 148 | - if (! empty($component->inOut)) { |
|
| 148 | + if (!empty($component->inOut)) { |
|
| 149 | 149 | $tmp .= $component->inOut . ' '; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - if (! empty($expr->type)) { |
|
| 193 | + if (!empty($expr->type)) { |
|
| 194 | 194 | $ret[] = $expr; |
| 195 | 195 | } |
| 196 | 196 | |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | $ret = []; |
| 213 | 213 | foreach ($component as $c) { |
| 214 | 214 | $ret[] = array_search($c->type, static::$joins) . ' ' . $c->expr |
| 215 | - . (! empty($c->on) |
|
| 215 | + . (!empty($c->on) |
|
| 216 | 216 | ? ' ON ' . Condition::buildAll($c->on) : '') |
| 217 | - . (! empty($c->using) |
|
| 217 | + . (!empty($c->using) |
|
| 218 | 218 | ? ' USING ' . ArrayObj::build($c->using) : ''); |
| 219 | 219 | } |
| 220 | 220 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @var ArrayObj[]|null |
| 65 | 65 | */ |
| 66 | - public array|null $values = null; |
|
| 66 | + public array | null $values = null; |
|
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * If SET clause is present |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @var SetOperation[]|null |
| 73 | 73 | */ |
| 74 | - public array|null $set = null; |
|
| 74 | + public array | null $set = null; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * If SELECT clause is present |
@@ -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 | |
@@ -488,7 +488,7 @@ discard block |
||
| 488 | 488 | . OptionsArray::build($this->options) . ' ' |
| 489 | 489 | . Expression::build($this->name) . ' ' |
| 490 | 490 | . $fields . ' AS ' . $builtStatement |
| 491 | - . (! empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 491 | + . (!empty($this->body) ? TokensList::build($this->body) : '') . ' ' |
|
| 492 | 492 | . OptionsArray::build($this->entityOptions); |
| 493 | 493 | } |
| 494 | 494 | |
@@ -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, |