@@ -30,7 +30,7 @@ |
||
30 | 30 | /** @var ObjectDefinition $object */ |
31 | 31 | $object = $ast->getTypeDefinition(); |
32 | 32 | |
33 | - $this->immediately(function () use ($ast, $object) { |
|
33 | + $this->immediately(function() use ($ast, $object) { |
|
34 | 34 | $object->withOffset($ast->getOffset()); |
35 | 35 | $object->withDescription($ast->getDescription()); |
36 | 36 | }); |
@@ -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 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | return $this->parseInt($value->getValue()); |
53 | 53 | } |
54 | 54 | |
55 | - return (float)$value->getValue(); |
|
55 | + return (float) $value->getValue(); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | private function parseExponential(string $value): float |
81 | 81 | { |
82 | - return (float)$value; |
|
82 | + return (float) $value; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | private function parseFloat(string $value): float |
90 | 90 | { |
91 | - return (float)$value; |
|
91 | + return (float) $value; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -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) { |