Test Failed
Push — master ( 2d53c5...8b1ae1 )
by Kirill
02:39
created
src/Backend/Context/LocalContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,6 +113,6 @@
 block discarded – undo
113 113
      */
114 114
     public function __toString(): string
115 115
     {
116
-        return (string)$this->context;
116
+        return (string) $this->context;
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function compile(Readable $file): DocumentInterface
101 101
     {
102
-        return $this->store->memoize($file, function (Readable $file): DocumentInterface {
102
+        return $this->store->memoize($file, function(Readable $file): DocumentInterface {
103 103
             return $this->generate($file, $this->ir($file));
104 104
         });
105 105
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function generate(Readable $file, iterable $opcodes): DocumentInterface
116 116
     {
117
-        return $this->wrap(function () use ($file, $opcodes) {
117
+        return $this->wrap(function() use ($file, $opcodes) {
118 118
             return $this->back->run($file, $opcodes);
119 119
         });
120 120
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function ir(Readable $readable): iterable
151 151
     {
152
-        return $this->wrap(function () use ($readable) {
152
+        return $this->wrap(function() use ($readable) {
153 153
             return $this->front->load($readable);
154 154
         });
155 155
     }
Please login to merge, or discard this patch.
src/Backend/Context/DocumentContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,6 +113,6 @@
 block discarded – undo
113 113
      */
114 114
     public function __toString(): string
115 115
     {
116
-        return (string)$this->context;
116
+        return (string) $this->context;
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/TypeDefinitionNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param Context $context
37
-     * @return iterable
37
+     * @return \Generator
38 38
      */
39 39
     public function getOpcodes(Context $context): iterable
40 40
     {
Please login to merge, or discard this patch.
src/Frontend/AST/Dependent/DependentTypeDefinitionNode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * @param Context $context
54
-     * @return iterable
54
+     * @return \Generator
55 55
      */
56 56
     public function getOpcodes(Context $context): iterable
57 57
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
 use Railt\SDL\Frontend\Context;
21 21
 use Railt\SDL\Frontend\IR\Opcode;
22 22
 use Railt\SDL\Frontend\IR\Opcode\DefineOpcode;
23
-use Railt\SDL\Frontend\IR\OpcodeHeap;
24
-use Railt\SDL\Frontend\IR\OpcodeInterface;
25 23
 
26 24
 /**
27 25
  * Class DependentTypeDefinitionNode
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ArgumentInvocationNode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     /**
32 32
      * @param Context $context
33
-     * @return iterable
33
+     * @return \Generator
34 34
      */
35 35
     public function getOpcodes(Context $context): iterable
36 36
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Railt\SDL\Frontend\IR\Opcode\CompareOpcode;
20 20
 use Railt\SDL\Frontend\IR\Opcode\CallOpcode;
21 21
 use Railt\SDL\Frontend\IR\Opcode\FetchOpcode;
22
-use Railt\SDL\Frontend\IR\Opcode\DefineOpcode;
23 22
 
24 23
 /**
25 24
  * Class ArgumentInvocationNode
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/DirectiveInvocationNode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param Context $context
34
-     * @return iterable
34
+     * @return \Generator
35 35
      */
36 36
     public function getOpcodes(Context $context): iterable
37 37
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Railt\SDL\Frontend\AST\ProvidesType;
18 18
 use Railt\SDL\Frontend\AST\Support\TypeNameProvider;
19 19
 use Railt\SDL\Frontend\Context;
20
-use Railt\SDL\Frontend\IR\Opcode;
21 20
 use Railt\SDL\Frontend\IR\Opcode\CallOpcode;
22 21
 use Railt\SDL\Frontend\IR\Opcode\CompareOpcode;
23 22
 use Railt\SDL\Frontend\IR\Opcode\FetchOpcode;
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/InputInvocationNode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return iterable|array[]
51
+     * @return \Generator
52 52
      */
53 53
     public function getValues(): iterable
54 54
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
          * @var ValueInterface $value
42 42
          */
43 43
         foreach ($this->getValues() as [$name, $value]) {
44
-            $result[] = $name . ': ' . $value->toString();
44
+            $result[] = $name.': '.$value->toString();
45 45
         }
46 46
 
47 47
         return \sprintf('{%s}', \implode(', ', $result));
Please login to merge, or discard this patch.
src/Frontend/Frontend.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     /**
59 59
      * @param Readable $file
60
-     * @return iterable|OpcodeInterface[]
60
+     * @return \Generator
61 61
      * @throws SyntaxException
62 62
      */
63 63
     public function load(Readable $file): iterable
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     /**
87 87
      * @param NodeInterface $node
88
-     * @return iterable|Opcode[]|\Generator
88
+     * @return \Generator
89 89
      */
90 90
     private function bypass(NodeInterface $node): \Generator
91 91
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     /**
110 110
      * @param ProvidesOpcode $provider
111
-     * @return \Generator|OpcodeInterface[]
111
+     * @return \Generator
112 112
      */
113 113
     private function extract(ProvidesOpcode $provider): \Generator
114 114
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Railt\Io\Readable;
15 15
 use Railt\Parser\Ast\NodeInterface;
16 16
 use Railt\Parser\Ast\RuleInterface;
17
-use Railt\Parser\Exception\UnexpectedTokenException;
18 17
 use Railt\Parser\Exception\UnrecognizedTokenException;
19 18
 use Railt\SDL\Exception\SyntaxException;
20 19
 use Railt\SDL\Frontend\AST\ProvidesOpcode;
Please login to merge, or discard this patch.