@@ -15,7 +15,7 @@ |
||
| 15 | 15 | \GraphQL\Language\AST\DirectiveNode $directive |
| 16 | 16 | ): void { |
| 17 | 17 | /** @phpstan-ignore-next-line */ |
| 18 | - $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value .'");'; |
|
| 18 | + $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value . '");'; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public static function processMigrationFieldDirective( |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | public static function getGeneratorDirectiveNamespaces(): array |
| 37 | 37 | { |
| 38 | 38 | return array_map( |
| 39 | - function ($i) { |
|
| 39 | + function($i) { |
|
| 40 | 40 | return $i . '\\Laravel\\Directives'; |
| 41 | 41 | }, |
| 42 | 42 | self::$directiveLaravelLibraries |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public static function getGeneratorLighthouseDirectiveNamespaces(): array |
| 52 | 52 | { |
| 53 | 53 | return array_map( |
| 54 | - function ($i) { |
|
| 54 | + function($i) { |
|
| 55 | 55 | return $i . '\\Laravel\\Lighthouse\\Directives'; |
| 56 | 56 | }, |
| 57 | 57 | self::$directiveLaravelLibraries |
@@ -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; |
@@ -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; |
@@ -67,10 +67,10 @@ |
||
| 67 | 67 | $targetDirectives = $targetField->astNode->directives; |
| 68 | 68 | foreach ($targetDirectives as $targetDirective) { |
| 69 | 69 | switch ($targetDirective->name->value) { |
| 70 | - case 'hasOne': |
|
| 71 | - case 'hasMany': |
|
| 72 | - $codeFragment->appendBase('->unsignedBigInteger("' . $fieldName . '")'); |
|
| 73 | - break; |
|
| 70 | + case 'hasOne': |
|
| 71 | + case 'hasMany': |
|
| 72 | + $codeFragment->appendBase('->unsignedBigInteger("' . $fieldName . '")'); |
|
| 73 | + break; |
|
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | return new GeneratedCollection( |
| 34 | - [ new GeneratedItem( |
|
| 34 | + [new GeneratedItem( |
|
| 35 | 35 | GeneratedItem::TYPE_FACTORY, |
| 36 | 36 | $this->generateString(), |
| 37 | 37 | $this->getGenerateFilename() |
@@ -50,6 +50,6 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | public function getGenerateFilename(): string |
| 52 | 52 | { |
| 53 | - return $this->getBasePath('database/factories/'. $this->studlyName . 'Factory.php'); |
|
| 53 | + return $this->getBasePath('database/factories/' . $this->studlyName . 'Factory.php'); |
|
| 54 | 54 | } |
| 55 | 55 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | 'implements' => implode( |
| 23 | 23 | ', ', |
| 24 | 24 | array_map( |
| 25 | - function ($i) { |
|
| 25 | + function($i) { |
|
| 26 | 26 | return Str::studly($i) . 'DirectiveInterface'; |
| 27 | 27 | }, |
| 28 | 28 | $processors |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | // Script example.php |
| 63 | -$longopts = array( |
|
| 63 | +$longopts = array( |
|
| 64 | 64 | "name:", |
| 65 | 65 | "processors:" |
| 66 | 66 | ); |