@@ -130,7 +130,7 @@ |
||
130 | 130 | { |
131 | 131 | $lines = \explode("\n", \str_replace("\r", '', $body)); |
132 | 132 | |
133 | - $lines = \array_map(static function (string $line, int $i) use ($color, $msg): string { |
|
133 | + $lines = \array_map(static function(string $line, int $i) use ($color, $msg): string { |
|
134 | 134 | return \sprintf('<bg=%s> %s </> ', $color, $i ? ' ' : $msg) . $line; |
135 | 135 | }, $lines, \array_keys($lines)); |
136 | 136 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->app->register( |
28 | 28 | CompilerInterface::class, |
29 | - fn () => |
|
29 | + fn() => |
|
30 | 30 | new Compiler(Compiler::SPEC_RAILT) |
31 | 31 | ); |
32 | 32 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | $hash = $this->hash($source = File::new($source)); |
60 | 60 | |
61 | - if (! $this->cache->has($hash)) { |
|
61 | + if (!$this->cache->has($hash)) { |
|
62 | 62 | $this->cache->set($hash, $this->parser->parse($source)); |
63 | 63 | } |
64 | 64 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public static function assert(NodeInterface $node, SpecificationInterface $spec): void |
34 | 34 | { |
35 | - if (! $node instanceof DirectiveDefinitionNode) { |
|
35 | + if (!$node instanceof DirectiveDefinitionNode) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public static function assert(NodeInterface $node, SpecificationInterface $spec): void |
34 | 34 | { |
35 | - if (! $node instanceof TypeSystemExtensionNode) { |
|
35 | + if (!$node instanceof TypeSystemExtensionNode) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | private function bootConstraints(): void |
80 | 80 | { |
81 | 81 | foreach (static::STANDARD_CONSTRAINTS as $constraint) { |
82 | - if (! \in_array($constraint, $this->abilities, true)) { |
|
82 | + if (!\in_array($constraint, $this->abilities, true)) { |
|
83 | 83 | $this->constraints[] = $constraint; |
84 | 84 | } |
85 | 85 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $context = $this->context->getType($name->name->value); |
84 | 84 | |
85 | 85 | if ($context === null) { |
86 | - $this->loadOr($name->name->value, function () use ($name): void { |
|
86 | + $this->loadOr($name->name->value, function() use ($name): void { |
|
87 | 87 | throw $this->typeNotFound($name); |
88 | 88 | }); |
89 | 89 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $context = $this->context->getDirective($name->name->value); |
133 | 133 | |
134 | 134 | if ($context === null) { |
135 | - $this->loadOr('@' . $name->name->value, function () use ($name): void { |
|
135 | + $this->loadOr('@' . $name->name->value, function() use ($name): void { |
|
136 | 136 | throw $this->directiveNotFound($name); |
137 | 137 | }); |
138 | 138 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function cancelAutoload(callable $loader): self |
61 | 61 | { |
62 | - $this->loaders = \array_filter($this->loaders, static function (callable $haystack) use ($loader): bool { |
|
62 | + $this->loaders = \array_filter($this->loaders, static function(callable $haystack) use ($loader): bool { |
|
63 | 63 | return $haystack !== $loader; |
64 | 64 | }); |
65 | 65 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | private function assertExists(VariableValueNode $var): void |
118 | 118 | { |
119 | - if (! isset($this->variables[$var->getName()])) { |
|
119 | + if (!isset($this->variables[$var->getName()])) { |
|
120 | 120 | $error = \sprintf('Variable $%s not defined', $var->getName()); |
121 | 121 | |
122 | 122 | throw new RuntimeErrorException($error, $var); |