@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | $name = $directive->name->value; |
308 | 308 | switch ($name) { |
309 | 309 | case 'migrationSoftDeletes': |
310 | - $this->createCode[] ='$table->softDeletes();'; |
|
310 | + $this->createCode[] = '$table->softDeletes();'; |
|
311 | 311 | break; |
312 | 312 | case 'migrationPrimaryIndex': |
313 | 313 | // TODO |
@@ -322,10 +322,10 @@ discard block |
||
322 | 322 | if (!count($indexFields)) { |
323 | 323 | throw new Exception("You must provide at least one field to an index"); |
324 | 324 | } |
325 | - $this->createCode[] ='$table->index("' . implode('", "', $indexFields) .'");'; |
|
325 | + $this->createCode[] = '$table->index("' . implode('", "', $indexFields) . '");'; |
|
326 | 326 | break; |
327 | 327 | case 'migrationSpatialIndex': |
328 | - $this->createCode[] ='$table->spatialIndex("' . $directive->arguments[0]->value->value .'");'; |
|
328 | + $this->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value . '");'; |
|
329 | 329 | break; |
330 | 330 | |
331 | 331 | case 'migrationFulltextIndex': |
@@ -346,10 +346,10 @@ discard block |
||
346 | 346 | "\")');"; |
347 | 347 | break; |
348 | 348 | case 'migrationRememberToken': |
349 | - $this->createCode[] ='$table->rememberToken();'; |
|
349 | + $this->createCode[] = '$table->rememberToken();'; |
|
350 | 350 | break; |
351 | 351 | case 'migrationTimestamps': |
352 | - $this->createCode[] ='$table->timestamps();'; |
|
352 | + $this->createCode[] = '$table->timestamps();'; |
|
353 | 353 | break; |
354 | 354 | default: |
355 | 355 | } |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $this->getBasePath( |
435 | 435 | 'database/migrations/' . |
436 | 436 | date('Y_m_d_His') . |
437 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
437 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
438 | 438 | '_' . $this->mode . '_' . |
439 | 439 | $relation . |
440 | 440 | '_table.php' |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | $this->getBasePath( |
475 | 475 | 'database/migrations/' . |
476 | 476 | date('Y_m_d_His') . |
477 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
477 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
478 | 478 | '_' . $this->mode . '_' . |
479 | 479 | $type1 . '_' . $type2 . |
480 | 480 | '_table.php' |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | return $this->getBasePath( |
520 | 520 | 'database/migrations/' . |
521 | 521 | date('Y_m_d_His') . |
522 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
522 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
523 | 523 | '_' . $this->mode . '_' . |
524 | 524 | $basename . '_table.php' |
525 | 525 | ); |