@@ -115,7 +115,7 @@ |
||
| 115 | 115 | */ |
| 116 | 116 | private function validateFieldName(string $field, SchemaFieldDefinitionNode $rule, SchemaDefinition $schema): void |
| 117 | 117 | { |
| 118 | - if (! \in_array($field, [self::FIELD_QUERY, self::FIELD_MUTATION, self::FIELD_SUBSCRIPTION], true)) { |
|
| 118 | + if (!\in_array($field, [self::FIELD_QUERY, self::FIELD_MUTATION, self::FIELD_SUBSCRIPTION], true)) { |
|
| 119 | 119 | $error = \sprintf('Invalid %s field name "%s"', $schema, $field); |
| 120 | 120 | |
| 121 | 121 | throw (new TypeConflictException($error))->throwsIn($schema->getFile(), $rule->getOffset()); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST)) { |
| 33 | - $result = '[' . $result . ']'; |
|
| 33 | + $result = '['.$result.']'; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST_OF_NOT_NULL)) { |