@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | 'enum', |
157 | 157 | 'App\\Datatypes', |
158 | 158 | 'Tests\\Unit', |
159 | - function (ClassType $enumClass) use ($enumValues) { |
|
159 | + function(ClassType $enumClass) use ($enumValues) { |
|
160 | 160 | $enumClass->addConstant('CHOICES', $enumValues); |
161 | 161 | $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;'); |
162 | 162 | } |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | $name = $directive->name->value; |
364 | 364 | switch ($name) { |
365 | 365 | case 'migrationSoftDeletes': |
366 | - $this->createCode[] ='$table->softDeletes();'; |
|
366 | + $this->createCode[] = '$table->softDeletes();'; |
|
367 | 367 | break; |
368 | 368 | case 'migrationPrimaryIndex': |
369 | 369 | // TODO |
@@ -378,10 +378,10 @@ discard block |
||
378 | 378 | if (!count($indexFields)) { |
379 | 379 | throw new Exception("You must provide at least one field to an index"); |
380 | 380 | } |
381 | - $this->createCode[] ='$table->index("' . implode('", "', $indexFields) .'");'; |
|
381 | + $this->createCode[] = '$table->index("' . implode('", "', $indexFields) . '");'; |
|
382 | 382 | break; |
383 | 383 | case 'migrationSpatialIndex': |
384 | - $this->createCode[] ='$table->spatialIndex("' . $directive->arguments[0]->value->value .'");'; |
|
384 | + $this->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value . '");'; |
|
385 | 385 | break; |
386 | 386 | |
387 | 387 | case 'migrationFulltextIndex': |
@@ -402,10 +402,10 @@ discard block |
||
402 | 402 | "\")');"; |
403 | 403 | break; |
404 | 404 | case 'migrationRememberToken': |
405 | - $this->createCode[] ='$table->rememberToken();'; |
|
405 | + $this->createCode[] = '$table->rememberToken();'; |
|
406 | 406 | break; |
407 | 407 | case 'migrationTimestamps': |
408 | - $this->createCode[] ='$table->timestamps();'; |
|
408 | + $this->createCode[] = '$table->timestamps();'; |
|
409 | 409 | break; |
410 | 410 | default: |
411 | 411 | } |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | $this->getBasePath( |
491 | 491 | 'database/migrations/' . |
492 | 492 | date('Y_m_d_His') . |
493 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
493 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
494 | 494 | '_' . $this->mode . '_' . |
495 | 495 | $relation . |
496 | 496 | '_table.php' |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | $this->getBasePath( |
531 | 531 | 'database/migrations/' . |
532 | 532 | date('Y_m_d_His') . |
533 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
533 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
534 | 534 | '_' . $this->mode . '_' . |
535 | 535 | $type1 . '_' . $type2 . |
536 | 536 | '_table.php' |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | return $this->getBasePath( |
576 | 576 | 'database/migrations/' . |
577 | 577 | date('Y_m_d_His') . |
578 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
578 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
579 | 579 | '_' . $this->mode . '_' . |
580 | 580 | $basename . '_table.php' |
581 | 581 | ); |