@@ -51,5 +51,5 @@ |
||
51 | 51 | * @param TypeDefinition|string $definition |
52 | 52 | * @return bool |
53 | 53 | */ |
54 | - public function instanceOf($definition): bool; |
|
54 | + public function instanceof($definition): bool; |
|
55 | 55 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | * @param TypeDefinition|string $type |
104 | 104 | * @return bool |
105 | 105 | */ |
106 | - public function instanceOf($type): bool |
|
106 | + public function instanceof($type): bool |
|
107 | 107 | { |
108 | 108 | /** |
109 | 109 | * @var TypeDefinition $type |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function __toString(): string |
67 | 67 | { |
68 | - $parent = $this->getDictionary()->find($this->definition) ?: $this->definition . '<?>'; |
|
68 | + $parent = $this->getDictionary()->find($this->definition) ?: $this->definition.'<?>'; |
|
69 | 69 | |
70 | 70 | if ($this->isNonNull()) { |
71 | 71 | $parent .= '!'; |
72 | 72 | } |
73 | 73 | |
74 | 74 | if ($this->isList()) { |
75 | - $parent = '[' . $parent . ']'; |
|
75 | + $parent = '['.$parent.']'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | if ($this->isListOfNonNulls()) { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function isNonNull(): bool |
89 | 89 | { |
90 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL); |
|
90 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function isList(): bool |
97 | 97 | { |
98 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST); |
|
98 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function isListOfNonNulls(): bool |
105 | 105 | { |
106 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL); |
|
106 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | private function bootInheritance(\SplStack $stack, array $children = []): void |
69 | 69 | { |
70 | - $push = function (string $type) use ($stack): void { |
|
70 | + $push = function(string $type) use ($stack): void { |
|
71 | 71 | self::$inheritance[$type] = \array_values(\iterator_to_array($stack)); |
72 | 72 | self::$inheritance[$type][] = static::ROOT_TYPE; |
73 | 73 |
@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * {@inheritDoc} |
143 | 143 | */ |
144 | - public function instanceOf(TypeInterface $type): bool |
|
144 | + public function instanceof(TypeInterface $type): bool |
|
145 | 145 | { |
146 | 146 | $needle = $type->getName(); |
147 | 147 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @var string |
39 | 39 | */ |
40 | - public const INTERFACE = 'Interface'; |
|
40 | + public const interface = 'Interface'; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @var string |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public const ROOT_TYPES = [ |
114 | 114 | self::SCALAR, |
115 | 115 | self::OBJECT, |
116 | - self::INTERFACE, |
|
116 | + self::interface, |
|
117 | 117 | self::UNION, |
118 | 118 | self::ENUM, |
119 | 119 | self::INPUT_OBJECT, |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | public const ALLOWS_TO_OUTPUT = [ |
142 | 142 | self::SCALAR, |
143 | 143 | self::OBJECT, |
144 | - self::INTERFACE, |
|
144 | + self::interface, |
|
145 | 145 | self::UNION, |
146 | 146 | self::ENUM, |
147 | 147 | self::INPUT_OBJECT, |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * @var string[]|array[] |
159 | 159 | */ |
160 | 160 | public const INHERITANCE_TREE = [ |
161 | - self::INTERFACE => [ |
|
161 | + self::interface => [ |
|
162 | 162 | self::OBJECT => [ |
163 | 163 | self::INPUT_OBJECT |
164 | 164 | ], |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * @param TypeInterface $type |
211 | 211 | * @return bool |
212 | 212 | */ |
213 | - public function instanceOf(TypeInterface $type): bool; |
|
213 | + public function instanceof(TypeInterface $type): bool; |
|
214 | 214 | |
215 | 215 | /** |
216 | 216 | * Returns true if the type is the same as the current type. |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public const TYPE_DESCRIPTION = <<<Description |
29 | 29 | Object and Interface types are described by a list of Fields, each of |
30 | 30 | which has a name, potentially a list of arguments, and a return type. |
31 | -Description; |
|
31 | +description; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @var int |
@@ -35,7 +35,7 @@ |
||
35 | 35 | Interface types provide the fields they describe. Abstract types, |
36 | 36 | Union and Interface, provide the Object types possible at runtime. |
37 | 37 | List and NonNull types compose other types. |
38 | -Description; |
|
38 | +description; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @var int |
@@ -33,7 +33,7 @@ |
||
33 | 33 | execution behavior in ways field arguments will not suffice, such |
34 | 34 | as conditionally including or skipping a field. Directives provide |
35 | 35 | this by describing additional information to the executor. |
36 | -Description; |
|
36 | +description; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * @var int |
@@ -29,7 +29,7 @@ |
||
29 | 29 | A GraphQL Schema defines the capabilities of a GraphQL server. |
30 | 30 | It exposes all available types and directives on the server, as well |
31 | 31 | as the entry points for query, mutation, and subscription operations. |
32 | -Description; |
|
32 | +description; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @var int |