Passed
Push — master ( b16987...8b6d77 )
by Maurício
03:49 queued 13s
created
src/Statements/CreateStatement.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      *
277 277
      * Used by all `CREATE` statements.
278 278
      */
279
-    public Expression|null $name = null;
279
+    public Expression | null $name = null;
280 280
 
281 281
     /**
282 282
      * The options of the entity (table, procedure, function, etc.).
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      * @see CreateStatement::FUNCTION_OPTIONS
288 288
      * @see CreateStatement::TRIGGER_OPTIONS
289 289
      */
290
-    public OptionsArray|null $entityOptions = null;
290
+    public OptionsArray | null $entityOptions = null;
291 291
 
292 292
     /**
293 293
      * If `CREATE TABLE`, a list of columns and keys.
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      *
298 298
      * @var CreateDefinition[]|ArrayObj|null
299 299
      */
300
-    public array|ArrayObj|null $fields = null;
300
+    public array | ArrayObj | null $fields = null;
301 301
 
302 302
     /**
303 303
      * If `CREATE TABLE WITH`.
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      *
307 307
      * Used by `CREATE TABLE`, `CREATE VIEW`
308 308
      */
309
-    public WithStatement|null $with = null;
309
+    public WithStatement | null $with = null;
310 310
 
311 311
     /**
312 312
      * If `CREATE TABLE ... SELECT`.
@@ -314,55 +314,55 @@  discard block
 block discarded – undo
314 314
      *
315 315
      * Used by `CREATE TABLE`, `CREATE VIEW`
316 316
      */
317
-    public SelectStatement|null $select = null;
317
+    public SelectStatement | null $select = null;
318 318
 
319 319
     /**
320 320
      * If `CREATE TABLE ... LIKE`.
321 321
      *
322 322
      * Used by `CREATE TABLE`
323 323
      */
324
-    public Expression|null $like = null;
324
+    public Expression | null $like = null;
325 325
 
326 326
     /**
327 327
      * Expression used for partitioning.
328 328
      */
329
-    public string|null $partitionBy = null;
329
+    public string | null $partitionBy = null;
330 330
 
331 331
     /**
332 332
      * The number of partitions.
333 333
      */
334
-    public int|null $partitionsNum = null;
334
+    public int | null $partitionsNum = null;
335 335
 
336 336
     /**
337 337
      * Expression used for subpartitioning.
338 338
      */
339
-    public string|null $subpartitionBy = null;
339
+    public string | null $subpartitionBy = null;
340 340
 
341 341
     /**
342 342
      * The number of subpartitions.
343 343
      */
344
-    public int|null $subpartitionsNum = null;
344
+    public int | null $subpartitionsNum = null;
345 345
 
346 346
     /**
347 347
      * The partition of the new table.
348 348
      *
349 349
      * @var PartitionDefinition[]|null
350 350
      */
351
-    public array|null $partitions = null;
351
+    public array | null $partitions = null;
352 352
 
353 353
     /**
354 354
      * If `CREATE TRIGGER` the name of the table.
355 355
      *
356 356
      * Used by `CREATE TRIGGER`.
357 357
      */
358
-    public Expression|null $table = null;
358
+    public Expression | null $table = null;
359 359
 
360 360
     /**
361 361
      * The return data type of this routine.
362 362
      *
363 363
      * Used by `CREATE FUNCTION`.
364 364
      */
365
-    public DataType|null $return = null;
365
+    public DataType | null $return = null;
366 366
 
367 367
     /**
368 368
      * The parameters of this routine.
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      *
372 372
      * @var ParameterDefinition[]|null
373 373
      */
374
-    public array|null $parameters = null;
374
+    public array | null $parameters = null;
375 375
 
376 376
     /**
377 377
      * The body of this function or procedure.
@@ -424,23 +424,23 @@  discard block
 block discarded – undo
424 424
 
425 425
             $partition = '';
426 426
 
427
-            if (! empty($this->partitionBy)) {
427
+            if (!empty($this->partitionBy)) {
428 428
                 $partition .= "\nPARTITION BY " . $this->partitionBy;
429 429
             }
430 430
 
431
-            if (! empty($this->partitionsNum)) {
431
+            if (!empty($this->partitionsNum)) {
432 432
                 $partition .= "\nPARTITIONS " . $this->partitionsNum;
433 433
             }
434 434
 
435
-            if (! empty($this->subpartitionBy)) {
435
+            if (!empty($this->subpartitionBy)) {
436 436
                 $partition .= "\nSUBPARTITION BY " . $this->subpartitionBy;
437 437
             }
438 438
 
439
-            if (! empty($this->subpartitionsNum)) {
439
+            if (!empty($this->subpartitionsNum)) {
440 440
                 $partition .= "\nSUBPARTITIONS " . $this->subpartitionsNum;
441 441
             }
442 442
 
443
-            if (! empty($this->partitions)) {
443
+            if (!empty($this->partitions)) {
444 444
                 $partition .= "\n" . PartitionDefinitions::buildAll($this->partitions);
445 445
             }
446 446
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
                         $token = $list->getNextOfType(TokenType::Number);
631 631
                         --$list->idx; // `getNextOfType` also advances one position.
632 632
                         $this->subpartitionsNum = $token->value;
633
-                    } elseif (! empty($field)) {
633
+                    } elseif (!empty($field)) {
634 634
                         /*
635 635
                          * Handling the content of `PARTITION BY` and `SUBPARTITION BY`.
636 636
                          */
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
                             $field = null;
660 660
                         }
661 661
                     } elseif (($token->type === TokenType::Operator) && ($token->value === '(')) {
662
-                        if (! empty($this->partitionBy)) {
662
+                        if (!empty($this->partitionBy)) {
663 663
                             $this->partitions = ArrayObjs::parse(
664 664
                                 $parser,
665 665
                                 $list,
Please login to merge, or discard this patch.