@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | \get_class($this), |
110 | 110 | ])); |
111 | 111 | |
112 | - return (string)$this->name; |
|
112 | + return (string) $this->name; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function getDescription(): string |
119 | 119 | { |
120 | - return (string)$this->description; |
|
120 | + return (string) $this->description; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -105,7 +105,7 @@ |
||
105 | 105 | // 2) Position: FieldType > ArgumentType |
106 | 106 | // + Directive Location: INPUT_FIELD_DEFINITION |
107 | 107 | // |
108 | - if ($type instanceof Dependent\ArgumentDefinition && ! $this->allowedForArgument($type)) { |
|
108 | + if ($type instanceof Dependent\ArgumentDefinition && !$this->allowedForArgument($type)) { |
|
109 | 109 | continue; |
110 | 110 | } |
111 | 111 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function getValue(): string |
33 | 33 | { |
34 | - return (string)$this->name; |
|
34 | + return (string) $this->name; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | protected function valueWithType($value): string |
107 | 107 | { |
108 | - return \mb_strtolower(\gettype($value)) . ' ' . $this->valueToString($value); |
|
108 | + return \mb_strtolower(\gettype($value)).' '.$this->valueToString($value); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -164,6 +164,6 @@ discard block |
||
164 | 164 | return $result; |
165 | 165 | } |
166 | 166 | |
167 | - return (string)$result; |
|
167 | + return (string) $result; |
|
168 | 168 | } |
169 | 169 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /**#@+ |
18 | 18 | * Virtual types group |
19 | 19 | */ |
20 | - public const DOCUMENT = 'Document'; |
|
20 | + public const DOCUMENT = 'Document'; |
|
21 | 21 | /**#@-*/ |
22 | 22 | |
23 | 23 | /**#@+ |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | public const SCHEMA = 'Schema'; |
27 | 27 | |
28 | 28 | public const OBJECT = 'Object'; |
29 | - public const OBJECT_FIELD = 'Field'; // TODO Rename |
|
30 | - public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename |
|
29 | + public const OBJECT_FIELD = 'Field'; // TODO Rename |
|
30 | + public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename |
|
31 | 31 | |
32 | 32 | public const INTERFACE = 'Interface'; |
33 | - public const INTERFACE_FIELD = 'Field'; // TODO Rename |
|
34 | - public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename |
|
33 | + public const INTERFACE_FIELD = 'Field'; // TODO Rename |
|
34 | + public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename |
|
35 | 35 | |
36 | 36 | public const DIRECTIVE = 'Directive'; |
37 | - public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename |
|
37 | + public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename |
|
38 | 38 | |
39 | 39 | public const INPUT = 'Input'; |
40 | 40 | public const INPUT_FIELD = 'InputField'; |
@@ -52,6 +52,6 @@ discard block |
||
52 | 52 | public const INPUT_INVOCATION = self::INPUT; |
53 | 53 | public const DIRECTIVE_INVOCATION = self::DIRECTIVE; |
54 | 54 | // Extensions |
55 | - public const EXTENSION = 'Extension'; |
|
55 | + public const EXTENSION = 'Extension'; |
|
56 | 56 | /**#@-*/ |
57 | 57 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | declare(strict_types=1); |
9 | 9 | |
10 | 10 | |
11 | -\spl_autoload_register(function (string $alias): void { |
|
11 | +\spl_autoload_register(function(string $alias): void { |
|
12 | 12 | $shouldRewrite = \strpos(\trim($alias, '\\'), 'Railt\\Reflection') === 0; |
13 | 13 | |
14 | 14 | if ($shouldRewrite) { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | { |
146 | 146 | $this->load($document); |
147 | 147 | |
148 | - $build = function (Definition $definition): void { |
|
148 | + $build = function(Definition $definition): void { |
|
149 | 149 | $this->stack->push($definition); |
150 | 150 | |
151 | 151 | if ($definition instanceof Compilable) { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $this->typeCoercion->apply($definition); |
157 | 157 | } |
158 | 158 | |
159 | - if (! ($definition instanceof StandardType)) { |
|
159 | + if (!($definition instanceof StandardType)) { |
|
160 | 160 | $this->typeValidator->group(Definitions::class)->validate($definition); |
161 | 161 | } |
162 | 162 | |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | /** @var TypeDefinition $type */ |
219 | 219 | foreach ($document->getTypeDefinitions() as $type) { |
220 | - if (! $this->loader->has($type->getName())) { |
|
220 | + if (!$this->loader->has($type->getName())) { |
|
221 | 221 | $this->stack->push($type); |
222 | 222 | $this->loader->register($type); |
223 | 223 | $this->stack->pop(); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | private function onCompile(): \Closure |
238 | 238 | { |
239 | - return function (Readable $readable): Document { |
|
239 | + return function(Readable $readable): Document { |
|
240 | 240 | $ast = $this->parser->parse($readable); |
241 | 241 | |
242 | 242 | return $this->complete(new DocumentBuilder($ast, $readable, $this)); |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | public function getPersister(): Storage |
277 | 277 | { |
278 | 278 | \trigger_error( |
279 | - __METHOD__ . ' was renamed to getStorage and will be deleted on next release', |
|
279 | + __METHOD__.' was renamed to getStorage and will be deleted on next release', |
|
280 | 280 | \E_USER_DEPRECATED |
281 | 281 | ); |
282 | 282 |