@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $this->withDescription(self::TYPE_DESCRIPTION) |
| 53 | 53 | ->withArgument((new ArgumentDefinition($this, $document, 'if', 'Boolean')) |
| 54 | 54 | ->withModifiers(ArgumentDefinition::IS_NOT_NULL)) |
| 55 | - ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation { |
|
| 55 | + ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation { |
|
| 56 | 56 | return new DirectiveLocation($this, $document, $location); |
| 57 | 57 | }, self::LOCATIONS)); |
| 58 | 58 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public const TYPE_DESCRIPTION = <<<Description |
| 40 | 40 | The @skip directive may be provided for fields, fragment spreads, and inline fragments, |
| 41 | 41 | and allows for conditional exclusion during execution as described by the if argument. |
| 42 | -Description; |
|
| 42 | +description; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * BooleanScalar constructor. |
@@ -58,9 +58,9 @@ |
||
| 58 | 58 | parent::__construct($document, self::TYPE_NAME); |
| 59 | 59 | |
| 60 | 60 | $this->withDescription(self::TYPE_DESCRIPTION) |
| 61 | - ->withArgument((new ArgumentDefinition($this, $document, 'reason','String')) |
|
| 61 | + ->withArgument((new ArgumentDefinition($this, $document, 'reason', 'String')) |
|
| 62 | 62 | ->withDefaultValue('No longer supported')) |
| 63 | - ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation { |
|
| 63 | + ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation { |
|
| 64 | 64 | return new DirectiveLocation($this, $document, $location); |
| 65 | 65 | }, self::LOCATIONS)); |
| 66 | 66 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | private const LOCATIONS = [ |
| 26 | 26 | DirectiveLocation::OBJECT, |
| 27 | - DirectiveLocation::INTERFACE, |
|
| 27 | + DirectiveLocation::interface, |
|
| 28 | 28 | DirectiveLocation::FIELD_DEFINITION, |
| 29 | 29 | DirectiveLocation::SCALAR, |
| 30 | 30 | DirectiveLocation::UNION, |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | The @deprecated directive is used within the type system definition language to |
| 48 | 48 | indicate deprecated portions of a GraphQL service’s schema, such as deprecated |
| 49 | 49 | fields on a type or deprecated enum values. |
| 50 | -Description; |
|
| 50 | +description; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * BooleanScalar constructor. |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $this->withDescription(self::TYPE_DESCRIPTION) |
| 54 | 54 | ->withArgument((new ArgumentDefinition($this, $document, 'if', 'Boolean')) |
| 55 | 55 | ->withModifiers(ArgumentDefinition::IS_NOT_NULL)) |
| 56 | - ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation { |
|
| 56 | + ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation { |
|
| 57 | 57 | return new DirectiveLocation($this, $document, $location); |
| 58 | 58 | }, self::LOCATIONS)); |
| 59 | 59 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | The @include directive may be provided for fields, fragment spreads, and inline |
| 41 | 41 | fragments, and allows for conditional inclusion during execution as described |
| 42 | 42 | by the if argument. |
| 43 | -Description; |
|
| 43 | +description; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * BooleanScalar constructor. |