@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | 'enum', |
| 162 | 162 | 'App\\Datatypes', |
| 163 | 163 | 'Tests\\Unit', |
| 164 | - function (ClassType $enumClass) use ($enumValues) { |
|
| 164 | + function(ClassType $enumClass) use ($enumValues) { |
|
| 165 | 165 | $enumClass->addConstant('CHOICES', $enumValues); |
| 166 | 166 | $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;'); |
| 167 | 167 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | $options = []; // TODO: from directives |
| 212 | - $base = '$table->' . $ourType->getLaravelSQLType($fieldName, $options); |
|
| 212 | + $base = '$table->' . $ourType->getLaravelSQLType($fieldName, $options); |
|
| 213 | 213 | } elseif ($type instanceof UnionType) { |
| 214 | 214 | return; |
| 215 | 215 | } elseif ($type instanceof CustomScalarType) { |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | $this->getBasePath( |
| 486 | 486 | 'database/migrations/' . |
| 487 | 487 | date('Y_m_d_His') . |
| 488 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 488 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 489 | 489 | '_' . $this->mode . '_' . |
| 490 | 490 | $relation . |
| 491 | 491 | '_table.php' |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | $this->getBasePath( |
| 526 | 526 | 'database/migrations/' . |
| 527 | 527 | date('Y_m_d_His') . |
| 528 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 528 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 529 | 529 | '_' . $this->mode . '_' . |
| 530 | 530 | $type1 . '_' . $type2 . |
| 531 | 531 | '_table.php' |
@@ -570,7 +570,7 @@ discard block |
||
| 570 | 570 | return $this->getBasePath( |
| 571 | 571 | 'database/migrations/' . |
| 572 | 572 | date('Y_m_d_His') . |
| 573 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 573 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 574 | 574 | '_' . $this->mode . '_' . |
| 575 | 575 | $basename . '_table.php' |
| 576 | 576 | ); |