Test Setup Failed
Push — master ( 7372a0...5c877a )
by Kirill
02:55
created
src/Console/ParseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/TypeSystemServiceExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function register(): void
26 26
     {
27
-        $this->app->register(CompilerInterface::class, fn () =>
27
+        $this->app->register(CompilerInterface::class, fn() =>
28 28
             new Compiler(Compiler::SPEC_RAILT)
29 29
         );
30 30
     }
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     public function build(iterable $ast, Document $dictionary = null): DocumentInterface
151 151
     {
152 152
         $registry = new Registry();
153
-        $dictionary ??= $this->document;
153
+        $dictionary ?? = $this->document;
154 154
 
155 155
         /**
156 156
          * First tree walk:
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $source = File::new($source);
203 203
 
204
-        return $this->cache[$this->hash($source)] ??= $this->parser->parse($source);
204
+        return $this->cache[$this->hash($source)] ?? = $this->parser->parse($source);
205 205
     }
206 206
 
207 207
     /**
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function withType(NamedTypeInterface $type, bool $overwrite = false): self
235 235
     {
236
-        if ($overwrite || ! $this->document->typeMap->containsKey($type->getName())) {
236
+        if ($overwrite || !$this->document->typeMap->containsKey($type->getName())) {
237 237
             $this->document->typeMap->put($type->getName(), $type);
238 238
         }
239 239
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function withDirective(DirectiveInterface $directive, bool $overwrite = false): self
247 247
     {
248
-        if ($overwrite || ! $this->document->directives->containsKey($directive->getName())) {
248
+        if ($overwrite || !$this->document->directives->containsKey($directive->getName())) {
249 249
             $this->document->directives->put($directive->getName(), $directive);
250 250
         }
251 251
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     public function withSchema(SchemaInterface $schema, bool $overwrite = false): self
259 259
     {
260
-        if ($overwrite || ! $this->document->schema) {
260
+        if ($overwrite || !$this->document->schema) {
261 261
             $this->document->schema = $schema;
262 262
         }
263 263
 
Please login to merge, or discard this patch.
src/Parser/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Parser/Generator/ZendGeneratorExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Executor/Linker/NamedTypeLinker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Executor/Linker/TypeExtensionLinker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Executor/Linker/TypeLinker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Executor/Linker/DirectiveExecutionLinker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.