@@ -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 | - $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options)); |
|
| 212 | + $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options)); |
|
| 213 | 213 | } elseif ($type instanceof UnionType) { |
| 214 | 214 | return; |
| 215 | 215 | } elseif ($type instanceof CustomScalarType) { |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $this->getBasePath( |
| 485 | 485 | 'database/migrations/' . |
| 486 | 486 | date('Y_m_d_His') . |
| 487 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 487 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 488 | 488 | '_' . $this->mode . '_' . |
| 489 | 489 | $relation . |
| 490 | 490 | '_table.php' |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | $this->getBasePath( |
| 525 | 525 | 'database/migrations/' . |
| 526 | 526 | date('Y_m_d_His') . |
| 527 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 527 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 528 | 528 | '_' . $this->mode . '_' . |
| 529 | 529 | $type1 . '_' . $type2 . |
| 530 | 530 | '_table.php' |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | return $this->getBasePath( |
| 570 | 570 | 'database/migrations/' . |
| 571 | 571 | date('Y_m_d_His') . |
| 572 | - str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 572 | + str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema |
|
| 573 | 573 | '_' . $this->mode . '_' . |
| 574 | 574 | $basename . '_table.php' |
| 575 | 575 | ); |