@@ -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 | } |
@@ -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 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __construct(TypeNode $type) |
| 37 | 37 | { |
| 38 | - \assert(! $type instanceof self); |
|
| 38 | + \assert(!$type instanceof self); |
|
| 39 | 39 | |
| 40 | 40 | $this->type = $type; |
| 41 | 41 | } |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function create(array $children): array |
| 42 | 42 | { |
| 43 | - return \array_map(fn (NamedTypeNode $type): self => new static($type), $children); |
|
| 43 | + return \array_map(fn(NamedTypeNode $type): self => new static($type), $children); |
|
| 44 | 44 | } |
| 45 | 45 | } |