Passed
Push — master ( 184a80...bae44d )
by William
02:39 queued 11s
created
src/Statements/CreateStatement.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     public function build()
377 377
     {
378 378
         $fields = '';
379
-        if (! empty($this->fields)) {
379
+        if (!empty($this->fields)) {
380 380
             if (is_array($this->fields)) {
381 381
                 $fields = CreateDefinition::build($this->fields) . ' ';
382 382
             } elseif ($this->fields instanceof ArrayObj) {
@@ -408,23 +408,23 @@  discard block
 block discarded – undo
408 408
 
409 409
             $partition = '';
410 410
 
411
-            if (! empty($this->partitionBy)) {
411
+            if (!empty($this->partitionBy)) {
412 412
                 $partition .= "\nPARTITION BY " . $this->partitionBy;
413 413
             }
414 414
 
415
-            if (! empty($this->partitionsNum)) {
415
+            if (!empty($this->partitionsNum)) {
416 416
                 $partition .= "\nPARTITIONS " . $this->partitionsNum;
417 417
             }
418 418
 
419
-            if (! empty($this->subpartitionBy)) {
419
+            if (!empty($this->subpartitionBy)) {
420 420
                 $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy;
421 421
             }
422 422
 
423
-            if (! empty($this->subpartitionsNum)) {
423
+            if (!empty($this->subpartitionsNum)) {
424 424
                 $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum;
425 425
             }
426 426
 
427
-            if (! empty($this->partitions)) {
427
+            if (!empty($this->partitions)) {
428 428
                 $partition .= "\n" . PartitionDefinition::build($this->partitions);
429 429
             }
430 430
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
                 . OptionsArray::build($this->options) . ' '
440 440
                 . Expression::build($this->name) . ' '
441 441
                 . $fields . ' AS ' . ($this->select ? $this->select->build() : '')
442
-                . (! empty($this->body) ? TokensList::build($this->body) : '') . ' '
442
+                . (!empty($this->body) ? TokensList::build($this->body) : '') . ' '
443 443
                 . OptionsArray::build($this->entityOptions);
444 444
         } elseif ($this->options->has('TRIGGER')) {
445 445
             return 'CREATE '
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
             ]
493 493
         );
494 494
 
495
-        if (! isset($this->name) || ($this->name === '')) {
495
+        if (!isset($this->name) || ($this->name === '')) {
496 496
             $parser->error('The name of the entity was expected.', $list->tokens[$list->idx]);
497 497
         } else {
498 498
             ++$list->idx; // Skipping field.
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
                         $token = $list->getNextOfType(Token::TYPE_NUMBER);
601 601
                         --$list->idx; // `getNextOfType` also advances one position.
602 602
                         $this->subpartitionsNum = $token->value;
603
-                    } elseif (! empty($field)) {
603
+                    } elseif (!empty($field)) {
604 604
                         /*
605 605
                          * Handling the content of `PARTITION BY` and `SUBPARTITION BY`.
606 606
                          */
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
                             $field = null;
630 630
                         }
631 631
                     } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) {
632
-                        if (! empty($this->partitionBy)) {
632
+                        if (!empty($this->partitionBy)) {
633 633
                             $this->partitions = ArrayObj::parse(
634 634
                                 $parser,
635 635
                                 $list,
Please login to merge, or discard this patch.