@@ -16,7 +16,7 @@ |
||
16 | 16 | public static function processModelFieldDirective( |
17 | 17 | ModelGenerator $generator, |
18 | 18 | \GraphQL\Type\Definition\FieldDefinition $field, |
19 | - \Formularium\Field $fieldFormularium, |
|
19 | + \Formularium\Field $fieldFormularium, |
|
20 | 20 | \GraphQL\Language\AST\DirectiveNode $directive |
21 | 21 | ): void { |
22 | 22 | $fieldName = $field->name; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public static function processModelFieldDirective( |
37 | 37 | ModelGenerator $generator, |
38 | 38 | \GraphQL\Type\Definition\FieldDefinition $field, |
39 | - \Formularium\Field $fieldFormularium, |
|
39 | + \Formularium\Field $fieldFormularium, |
|
40 | 40 | \GraphQL\Language\AST\DirectiveNode $directive |
41 | 41 | ): void { |
42 | 42 | // nothing |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public static function processModelFieldDirective( |
18 | 18 | ModelGenerator $generator, |
19 | 19 | \GraphQL\Type\Definition\FieldDefinition $field, |
20 | - \Formularium\Field $fieldFormularium, |
|
20 | + \Formularium\Field $fieldFormularium, |
|
21 | 21 | \GraphQL\Language\AST\DirectiveNode $directive |
22 | 22 | ): void { |
23 | 23 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public static function processModelFieldDirective( |
17 | 17 | ModelGenerator $generator, |
18 | 18 | \GraphQL\Type\Definition\FieldDefinition $field, |
19 | - \Formularium\Field $fieldFormularium, |
|
19 | + \Formularium\Field $fieldFormularium, |
|
20 | 20 | \GraphQL\Language\AST\DirectiveNode $directive |
21 | 21 | ): void { |
22 | 22 | $fieldName = $field->name; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public static function processModelFieldDirective( |
37 | 37 | ModelGenerator $generator, |
38 | 38 | \GraphQL\Type\Definition\FieldDefinition $field, |
39 | - \Formularium\Field $fieldFormularium, |
|
39 | + \Formularium\Field $fieldFormularium, |
|
40 | 40 | \GraphQL\Language\AST\DirectiveNode $directive |
41 | 41 | ): void { |
42 | 42 | // nothing |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public static function processModelFieldDirective( |
37 | 37 | ModelGenerator $generator, |
38 | 38 | \GraphQL\Type\Definition\FieldDefinition $field, |
39 | - \Formularium\Field $fieldFormularium, |
|
39 | + \Formularium\Field $fieldFormularium, |
|
40 | 40 | \GraphQL\Language\AST\DirectiveNode $directive |
41 | 41 | ): void { |
42 | 42 | // nothing |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public static function processModelFieldDirective( |
37 | 37 | ModelGenerator $generator, |
38 | 38 | \GraphQL\Type\Definition\FieldDefinition $field, |
39 | - \Formularium\Field $fieldFormularium, |
|
39 | + \Formularium\Field $fieldFormularium, |
|
40 | 40 | \GraphQL\Language\AST\DirectiveNode $directive |
41 | 41 | ): void { |
42 | 42 | // nothing |
@@ -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 | ); |