@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | // Note: Skip type loading if type is part of type template parameter. |
105 | 105 | // |
106 | 106 | case $node instanceof NamedTypeNode: |
107 | - if (! \in_array($node->name->value, $this->genericArguments, true)) { |
|
107 | + if (!\in_array($node->name->value, $this->genericArguments, true)) { |
|
108 | 108 | $this->assertTypeExists($node); |
109 | 109 | } |
110 | 110 | |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | */ |
126 | 126 | private function assertTypeExists(NamedTypeNode $name): void |
127 | 127 | { |
128 | - if (! $this->context->hasType($name->name->value)) { |
|
129 | - $this->loadOr($name->name->value, function () use ($name): void { |
|
128 | + if (!$this->context->hasType($name->name->value)) { |
|
129 | + $this->loadOr($name->name->value, function() use ($name): void { |
|
130 | 130 | throw $this->typeNotFound($name); |
131 | 131 | }); |
132 | 132 | } |
@@ -182,8 +182,8 @@ discard block |
||
182 | 182 | */ |
183 | 183 | private function assertDirectiveExists(NamedDirectiveNode $name): void |
184 | 184 | { |
185 | - if (! $this->context->hasDirective($name->name->value)) { |
|
186 | - $this->loadOr('@' . $name->name->value, function () use ($name): void { |
|
185 | + if (!$this->context->hasDirective($name->name->value)) { |
|
186 | + $this->loadOr('@' . $name->name->value, function() use ($name): void { |
|
187 | 187 | throw $this->directiveNotFound($name); |
188 | 188 | }); |
189 | 189 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | parent::__construct($ast); |
41 | 41 | |
42 | 42 | $this->name = $ast->name->value; |
43 | - $this->args = \array_map(fn (Identifier $id) => $id->value, $ast->name->arguments); |
|
43 | + $this->args = \array_map(fn(Identifier $id) => $id->value, $ast->name->arguments); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |