@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @version SDL June 2018 |
| 111 | 111 | * @var string |
| 112 | 112 | */ |
| 113 | - public const INTERFACE = 'INTERFACE'; |
|
| 113 | + public const INTERFACE = 'INTERFACE'; |
|
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @version SDL June 2018 |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @version SDL June 2018 |
| 111 | 111 | * @var string |
| 112 | 112 | */ |
| 113 | - public const INTERFACE = 'INTERFACE'; |
|
| 113 | + public const interface = 'INTERFACE'; |
|
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @version SDL June 2018 |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | public const SDL_LOCATIONS = [ |
| 162 | 162 | self::SCALAR, |
| 163 | 163 | self::OBJECT, |
| 164 | - self::INTERFACE, |
|
| 164 | + self::interface, |
|
| 165 | 165 | self::UNION, |
| 166 | 166 | self::ENUM, |
| 167 | 167 | self::INPUT_OBJECT, |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | public const LOCATION_TO_TYPES = [ |
| 182 | 182 | self::SCALAR => Type::SCALAR, |
| 183 | 183 | self::OBJECT => Type::OBJECT, |
| 184 | - self::INTERFACE => Type::INTERFACE, |
|
| 184 | + self::interface => Type::interface, |
|
| 185 | 185 | self::UNION => Type::UNION, |
| 186 | 186 | self::ENUM => Type::ENUM, |
| 187 | 187 | self::INPUT_OBJECT => Type::INPUT_OBJECT, |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @param TypeDefinition $definition |
| 39 | 39 | * @return bool |
| 40 | 40 | */ |
| 41 | - public function instanceOf(TypeDefinition $definition): bool; |
|
| 41 | + public function instanceof(TypeDefinition $definition): bool; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @return Dictionary |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | private function bootInheritance(\SplStack $stack, array $children = []): void |
| 72 | 72 | { |
| 73 | - $push = function (string $type) use ($stack): void { |
|
| 73 | + $push = function(string $type) use ($stack): void { |
|
| 74 | 74 | self::$inheritance[$type] = \array_values(\iterator_to_array($stack)); |
| 75 | 75 | self::$inheritance[$type][] = static::ROOT_TYPE; |
| 76 | 76 | |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | * @param TypeInterface $type |
| 115 | 115 | * @return bool |
| 116 | 116 | */ |
| 117 | - public function instanceOf(TypeInterface $type): bool |
|
| 117 | + public function instanceof(TypeInterface $type): bool |
|
| 118 | 118 | { |
| 119 | 119 | $needle = $type->getName(); |
| 120 | 120 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - public const STDLIB_SCHEMA_PATH = __DIR__ . '/../../resources/stdlib.graphqls'; |
|
| 35 | + public const STDLIB_SCHEMA_PATH = __DIR__.'/../../resources/stdlib.graphqls'; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * GraphQLDocument constructor. |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | an object or as the key for a cache. The ID type is serialized in the |
| 31 | 31 | same way as a String; however, defining it as an ID signifies that it |
| 32 | 32 | is not intended to be human‐readable. |
| 33 | -Description; |
|
| 33 | +description; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * BooleanScalar constructor. |
@@ -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. |