Test Failed
Push — master ( a6938b...0623fe )
by Kirill
04:39 queued 02:12
created
src/Frontend/Frontend.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@  discard block
 block discarded – undo
15 15
 use Railt\Io\Readable;
16 16
 use Railt\Parser\Ast\NodeInterface;
17 17
 use Railt\Parser\Ast\RuleInterface;
18
-use Railt\Parser\Exception\UnexpectedTokenException;
19 18
 use Railt\Parser\Exception\UnrecognizedTokenException;
20 19
 use Railt\SDL\Exception\SyntaxException;
21 20
 use Railt\SDL\Frontend\AST\ProvidesOpcode;
@@ -23,7 +22,6 @@  discard block
 block discarded – undo
23 22
 use Railt\SDL\Frontend\IR\Deferred;
24 23
 use Railt\SDL\Frontend\IR\Opcode\OpenOpcode;
25 24
 use Railt\SDL\Frontend\IR\OpcodeInterface;
26
-use Railt\SDL\Frontend\IR\Prototype;
27 25
 
28 26
 /**
29 27
  * Class Frontend
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     private function log($value): void
106 106
     {
107 107
         if ($value instanceof OpcodeInterface) {
108
-            $this->logger->debug((string)$value);
108
+            $this->logger->debug((string) $value);
109 109
         } else {
110 110
             $this->logger->info(\gettype($value));
111 111
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             if ($child instanceof ProvidesOpcode) {
132 132
                 $iterator = $this->extract($child, $child->getOpcodes($context));
133 133
 
134
-                yield from \iterator_reverse_each($iterator, function ($response) use (&$deferred): void {
134
+                yield from \iterator_reverse_each($iterator, function($response) use (&$deferred): void {
135 135
                     // In the event that the parent sends a deferred callback
136 136
                     // back, we memorize the reference to him in order
137 137
                     // to fulfill in the future.
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/TypeDefinitionNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
         $parent  = $context->create();
45 45
         $current = yield new DefineOpcode($this->getFullNameValue(), new TypeValue($this->getType()));
46 46
 
47
-        yield function () use ($current, $parent) {
47
+        yield function() use ($current, $parent) {
48 48
             yield new AddDefinitionOpcode($current, $parent);
49 49
         };
50 50
 
51
-        if (! ($description = $this->getDescriptionValue()) instanceof NullValue) {
51
+        if (!($description = $this->getDescriptionValue()) instanceof NullValue) {
52 52
             yield new AddDescriptionOpcode($current, $description);
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
src/Frontend/AST/Dependent/FieldDefinitionNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function getOpcodes(Context $context): iterable
43 43
     {
44
-        yield from \iterator_each(parent::getOpcodes($context), function ($result): void {
44
+        yield from \iterator_each(parent::getOpcodes($context), function($result): void {
45 45
             if ($result instanceof AddDefinitionOpcode) {
46 46
                 $result->rebind(OpcodeInterface::RL_ADD_FIELD);
47 47
             }
Please login to merge, or discard this patch.
src/Frontend/AST/Dependent/ArgumentDefinitionNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function getOpcodes(Context $context): iterable
50 50
     {
51
-        yield from \iterator_each(parent::getOpcodes($context), function ($result): void {
51
+        yield from \iterator_each(parent::getOpcodes($context), function($result): void {
52 52
             if ($result instanceof AddDefinitionOpcode) {
53 53
                 $result->rebind(OpcodeInterface::RL_ADD_ARGUMENT);
54 54
             }
Please login to merge, or discard this patch.
src/Frontend/AST/Dependent/DependentTypeDefinitionNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         $parent  = $context->create();
56 56
         $current = yield new DefineOpcode($this->getNameValue(), new TypeValue($this->getType()));
57 57
 
58
-        yield function () use ($current, $parent) {
58
+        yield function() use ($current, $parent) {
59 59
             yield new AddDefinitionOpcode($current, $parent);
60 60
         };
61 61
 
62
-        if (! ($description = $this->getDescriptionValue()) instanceof NullValue) {
62
+        if (!($description = $this->getDescriptionValue()) instanceof NullValue) {
63 63
             yield new AddDescriptionOpcode($current, $description);
64 64
         }
65 65
     }
Please login to merge, or discard this patch.