@@ -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 | |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | */ |
| 379 | 379 | protected function reduce63($children) |
| 380 | 380 | { |
| 381 | - $operations = \array_filter($children, static function ($child): bool { |
|
| 381 | + $operations = \array_filter($children, static function($child): bool { |
|
| 382 | 382 | return $child instanceof \Railt\SDL\Ast\Generic\OperationTypeDefinitionCollection; |
| 383 | 383 | }); |
| 384 | 384 | |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | */ |
| 463 | 463 | protected function reduce87($children) |
| 464 | 464 | { |
| 465 | - return ! \is_array($children); |
|
| 465 | + return !\is_array($children); |
|
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $class = \get_class($class); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - return ! $short ? $class : \basename(\str_replace('\\', \DIRECTORY_SEPARATOR, $class)); |
|
| 63 | + return !$short ? $class : \basename(\str_replace('\\', \DIRECTORY_SEPARATOR, $class)); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | foreach ($lines as $i => $line) { |
| 76 | 76 | $result = \str_repeat(' ', $depth * 4) . $line; |
| 77 | 77 | |
| 78 | - if (! \trim($result)) { |
|
| 78 | + if (!\trim($result)) { |
|
| 79 | 79 | $result = ''; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -35,11 +35,11 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function enter(NodeInterface $node): void |
| 37 | 37 | { |
| 38 | - if (! $node instanceof NamedTypeNode) { |
|
| 38 | + if (!$node instanceof NamedTypeNode) { |
|
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - if (! $this->loaded($node, LinkerInterface::LINK_TYPE, $node->name->value)) { |
|
| 42 | + if (!$this->loaded($node, LinkerInterface::LINK_TYPE, $node->name->value)) { |
|
| 43 | 43 | $message = \sprintf(self::ERROR_TYPE_NOT_FOUND, $node->name->value); |
| 44 | 44 | throw new TypeNotFoundException($message, $node); |
| 45 | 45 | } |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function enter(NodeInterface $node): void |
| 29 | 29 | { |
| 30 | - if (! $this->match($node)) { |
|
| 30 | + if (!$this->match($node)) { |
|
| 31 | 31 | return; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - if (! $this->loaded($node, $this->getLinkerType(), $node->name->value)) { |
|
| 34 | + if (!$this->loaded($node, $this->getLinkerType(), $node->name->value)) { |
|
| 35 | 35 | throw new TypeNotFoundException(\sprintf($this->getErrorMessage(), $node->name->value), $node); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | protected function loaded(DefinitionNode $node, int $type, ?string $name): bool |
| 58 | 58 | { |
| 59 | - if (! $this->exists($node)) { |
|
| 59 | + if (!$this->exists($node)) { |
|
| 60 | 60 | foreach ($this->loaders as $loader) { |
| 61 | 61 | $loader($type, $name); |
| 62 | 62 | |
@@ -36,11 +36,11 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function enter(NodeInterface $node) |
| 38 | 38 | { |
| 39 | - if (! $node instanceof DirectiveNode) { |
|
| 39 | + if (!$node instanceof DirectiveNode) { |
|
| 40 | 40 | return; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - if (! $this->loaded($node, LinkerInterface::LINK_DIRECTIVE, $node->name->value)) { |
|
| 43 | + if (!$this->loaded($node, LinkerInterface::LINK_DIRECTIVE, $node->name->value)) { |
|
| 44 | 44 | $message = \sprintf(self::ERROR_DIRECTIVE_NOT_FOUND, $node->name->value); |
| 45 | 45 | throw new TypeNotFoundException($message, $node); |
| 46 | 46 | } |
@@ -55,11 +55,11 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function enter(NodeInterface $node): void |
| 57 | 57 | { |
| 58 | - if (! $this->match($node)) { |
|
| 58 | + if (!$this->match($node)) { |
|
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - if (! $this->loaded($node, $this->getLinkerType(), null)) { |
|
| 62 | + if (!$this->loaded($node, $this->getLinkerType(), null)) { |
|
| 63 | 63 | throw new TypeNotFoundException($this->getErrorMessage(), $node); |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function __construct(array $items) |
| 25 | 25 | { |
| 26 | - parent::__construct(fn ($item) => $item instanceof InputFieldDefinitionNode, $items); |
|
| 26 | + parent::__construct(fn($item) => $item instanceof InputFieldDefinitionNode, $items); |
|
| 27 | 27 | } |
| 28 | 28 | } |