@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var InputUnionDefinition $inputUnion */ |
30 | 30 | $inputUnion = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $inputUnion) { |
|
32 | + $this->immediately(function() use ($ast, $inputUnion) { |
|
33 | 33 | $inputUnion->withOffset($ast->getOffset()); |
34 | 34 | $inputUnion->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var SchemaDefinition $schema */ |
30 | 30 | $schema = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $schema) { |
|
32 | + $this->immediately(function() use ($ast, $schema) { |
|
33 | 33 | $schema->withOffset($ast->getOffset()); |
34 | 34 | $schema->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var UnionDefinition $union */ |
30 | 30 | $union = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $union) { |
|
32 | + $this->immediately(function() use ($ast, $union) { |
|
33 | 33 | $union->withOffset($ast->getOffset()); |
34 | 34 | $union->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var InterfaceDefinition $interface */ |
30 | 30 | $interface = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $interface) { |
|
32 | + $this->immediately(function() use ($ast, $interface) { |
|
33 | 33 | $interface->withOffset($ast->getOffset()); |
34 | 34 | $interface->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -21,6 +21,6 @@ |
||
21 | 21 | */ |
22 | 22 | public function toPrimitive(): string |
23 | 23 | { |
24 | - return (string)$this->getChild(0)->getValue(); |
|
24 | + return (string) $this->getChild(0)->getValue(); |
|
25 | 25 | } |
26 | 26 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | private function renderUtfSequences(string $body): string |
95 | 95 | { |
96 | - $callee = function (array $matches): string { |
|
96 | + $callee = function(array $matches): string { |
|
97 | 97 | [$char, $code] = [$matches[0], $matches[1]]; |
98 | 98 | |
99 | 99 | try { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | { |
124 | 124 | try { |
125 | 125 | if (\function_exists('\\json_decode')) { |
126 | - $result = @\json_decode('{"char": "' . $body . '"}')->char; |
|
126 | + $result = @\json_decode('{"char": "'.$body.'"}')->char; |
|
127 | 127 | |
128 | 128 | if (\json_last_error() === \JSON_ERROR_NONE) { |
129 | 129 | $body = $result; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | private function renderSpecialCharacters(string $body): string |
145 | 145 | { |
146 | - $callee = function (array $matches): string { |
|
146 | + $callee = function(array $matches): string { |
|
147 | 147 | [$char, $code] = [$matches[0], $matches[1]]; |
148 | 148 | |
149 | 149 | switch ($code) { |