Test Failed
Push — master ( ecd78b...d05c81 )
by Kirill
02:43
created
src/Backend/Runtime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param iterable|OpcodeInterface[]|JoinedOpcode[] $opcodes
85
-     * @return iterable
85
+     * @return \Generator
86 86
      * @throws \Railt\Io\Exception\ExternalFileException
87 87
      */
88 88
     public function execute(iterable $opcodes): iterable
Please login to merge, or discard this patch.
src/Backend/State/OpenState.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param OpcodeInterface|JoinedOpcode $opcode
25
-     * @return mixed|Document
25
+     * @return Document
26 26
      * @throws VmException
27 27
      */
28 28
     protected function execute(OpcodeInterface $opcode)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         /** @var Readable $file */
31 31
         $file = $opcode->getOperand(0);
32 32
 
33
-        if (! $file instanceof Readable) {
33
+        if (!$file instanceof Readable) {
34 34
             $error = 'First operand of (#%d) %s should be instance of %s';
35 35
             throw new VmException($opcode, $error, $opcode->getId(), $opcode->getName(), Readable::class);
36 36
         }
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/TypeDefinitionNode.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,9 @@
 block discarded – undo
20 20
 use Railt\SDL\Frontend\AST\Support\DirectivesProvider;
21 21
 use Railt\SDL\Frontend\AST\Support\TypeNameProvider;
22 22
 use Railt\SDL\Frontend\Context;
23
-use Railt\SDL\Frontend\IR\Opcode;
24 23
 use Railt\SDL\Frontend\IR\Opcode\AttachOpcode;
25 24
 use Railt\SDL\Frontend\IR\Opcode\DefineOpcode;
26 25
 use Railt\SDL\Frontend\IR\Opcode\DescriptionOpcode;
27
-use Railt\SDL\Frontend\IR\Value\StringValue;
28 26
 use Railt\SDL\Frontend\IR\Value\TypeValue;
29 27
 
30 28
 /**
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ArgumentInvocationNode.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -15,11 +15,8 @@
 block discarded – undo
15 15
 use Railt\SDL\Frontend\AST\Support\DependentNameProvider;
16 16
 use Railt\SDL\Frontend\Context;
17 17
 use Railt\SDL\Frontend\IR\Opcode\AttachOpcode;
18
-use Railt\SDL\Frontend\IR\Opcode\CallOpcode;
19 18
 use Railt\SDL\Frontend\IR\Opcode\CompareOpcode;
20 19
 use Railt\SDL\Frontend\IR\Opcode\FetchOpcode;
21
-use Railt\SDL\Frontend\IR\Value\ConstantValue;
22
-use Railt\SDL\Frontend\IR\Value\StringValue;
23 20
 use Railt\SDL\Frontend\IR\Value\ValueInterface;
24 21
 
25 22
 /**
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/DirectiveInvocationNode.php 1 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\Context;
20 20
 use Railt\SDL\Frontend\IR\JoinedOpcode;
21 21
 use Railt\SDL\Frontend\IR\Opcode\AttachOpcode;
22
-use Railt\SDL\Frontend\IR\Opcode\CallOpcode;
23 22
 use Railt\SDL\Frontend\IR\Opcode\CompareOpcode;
24 23
 use Railt\SDL\Frontend\IR\Opcode\FetchDeepOpcode;
25 24
 use Railt\SDL\Frontend\IR\Opcode\NewOpcode;
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
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @return iterable|ValueInterface[]
43
+     * @return \Generator
44 44
      */
45 45
     private function getInnerValues(): iterable
46 46
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Railt\Reflection\Type;
16 16
 use Railt\SDL\Frontend\AST\ProvidesType;
17 17
 use Railt\SDL\Frontend\IR\Value\InputValue;
18
-use Railt\SDL\Frontend\IR\Value\StringValue;
19 18
 use Railt\SDL\Frontend\IR\Value\ValueInterface;
20 19
 
21 20
 /**
Please login to merge, or discard this patch.
src/Frontend/AST/Support/TypeNameProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @return ValueInterface|null
47
+     * @return ValueInterface
48 48
      */
49 49
     protected function getFullNameValue(): ?ValueInterface
50 50
     {
Please login to merge, or discard this patch.
src/Frontend/Frontend.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     /**
54 54
      * @param Readable $file
55
-     * @return iterable|OpcodeInterface[]
55
+     * @return \Generator
56 56
      * @throws SyntaxException
57 57
      */
58 58
     public function load(Readable $file): iterable
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * @param Readable $file
82 82
      * @param Context $context
83
-     * @return iterable|OpcodeInterface[]
83
+     * @return OpcodeHeap
84 84
      * @throws SyntaxException
85 85
      */
86 86
     private function collect(Readable $file, Context $context): iterable
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @param NodeInterface $node
105 105
      * @param Context $context
106
-     * @return iterable|Opcode[]|\Generator
106
+     * @return \Generator
107 107
      */
108 108
     private function bypass(NodeInterface $node, Context $context): \Generator
109 109
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * @param ProvidesOpcode $provider
129 129
      * @param Context $context
130
-     * @return \Generator|OpcodeInterface[]
130
+     * @return \Generator
131 131
      */
132 132
     private function extract(ProvidesOpcode $provider, Context $context): \Generator
133 133
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function __construct()
48 48
     {
49
-        $this->parser  = new Parser();
49
+        $this->parser = new Parser();
50 50
         $this->analyzer = new Analyzer();
51 51
     }
52 52
 
Please login to merge, or discard this patch.
src/Frontend/IR/Value/InputValue.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * InputValue constructor.
19
-     * @param iterable $values
19
+     * @param \Generator $values
20 20
      * @param int $offset
21 21
      */
22 22
     public function __construct(iterable $values, int $offset = 0)
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return iterable
61
+     * @return \Generator
62 62
      */
63 63
     public function getValue(): iterable
64 64
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
          * @var ValueInterface $value
52 52
          */
53 53
         foreach ($this->getValue() as $key => $value) {
54
-            $result[] = $key->toString() . ': ' . (string)$value;
54
+            $result[] = $key->toString().': '.(string) $value;
55 55
         }
56 56
 
57 57
         return \sprintf('{%s}', \implode(', ', $result));
Please login to merge, or discard this patch.