@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | 'enum', |
| 222 | 222 | 'App\\Datatypes', |
| 223 | 223 | 'Tests\\Unit', |
| 224 | - function (ClassType $enumClass) use ($enumValues) { |
|
| 224 | + function(ClassType $enumClass) use ($enumValues) { |
|
| 225 | 225 | $enumClass->addConstant('CHOICES', $enumValues); |
| 226 | 226 | $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;'); |
| 227 | 227 | } |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | $options = []; // TODO: from directives |
| 273 | - $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options)); |
|
| 273 | + $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options)); |
|
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | /** |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | $this->getBasePath( |
| 409 | 409 | 'database/migrations/' . |
| 410 | 410 | $this->stamp . |
| 411 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 411 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 412 | 412 | '_' . $this->mode . '_' . |
| 413 | 413 | $relation . |
| 414 | 414 | '_table.php' |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | $this->getBasePath( |
| 451 | 451 | 'database/migrations/' . |
| 452 | 452 | $this->stamp . |
| 453 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 453 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 454 | 454 | '_' . $this->mode . '_' . |
| 455 | 455 | $type1 . '_' . $type2 . |
| 456 | 456 | '_table.php' |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | return $this->getBasePath( |
| 496 | 496 | 'database/migrations/' . |
| 497 | 497 | $this->stamp . |
| 498 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 498 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 499 | 499 | '_' . $this->mode . '_' . |
| 500 | 500 | $basename . '_' . |
| 501 | 501 | str_replace('_', '', $this->stamp) . '_' . |