Test Failed
Push — master ( b7ab7b...94ee03 )
by Kirill
02:59
created
src/Compiler.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,14 +14,12 @@
 block discarded – undo
14 14
 use Psr\Log\LoggerInterface;
15 15
 use Railt\Io\File;
16 16
 use Railt\Io\Readable;
17
-use Railt\Reflection\Contracts\Document;
18 17
 use Railt\Reflection\Contracts\Document as DocumentInterface;
19 18
 use Railt\Reflection\Reflection;
20 19
 use Railt\SDL\Compiler\Dictionary;
21 20
 use Railt\SDL\Compiler\Store;
22 21
 use Railt\SDL\Exception\CompilerException;
23 22
 use Railt\SDL\Exception\InternalException;
24
-use Railt\SDL\Frontend\Record\RecordInterface;
25 23
 
26 24
 /**
27 25
  * Class Compiler
Please login to merge, or discard this patch.
src/Frontend.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
     /**
59 59
      * @param Readable $readable
60
-     * @return iterable
60
+     * @return \Generator
61 61
      * @throws SyntaxException
62 62
      * @throws \Railt\Io\Exception\ExternalFileException
63 63
      */
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 Psr\Log\LoggerInterface;
15 15
 use Railt\Io\Readable;
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\Builder;
Please login to merge, or discard this patch.
src/Frontend/Builder.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
 
102 102
     /**
103 103
      * @param Readable $file
104
-     * @param iterable $ast
105
-     * @return iterable
104
+     * @param RuleInterface $ast
105
+     * @return \Generator
106 106
      * @throws \Railt\Io\Exception\ExternalFileException
107 107
      */
108 108
     public function build(Readable $file, iterable $ast): iterable
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,9 @@
 block discarded – undo
16 16
 use Railt\SDL\Frontend;
17 17
 use Railt\SDL\Frontend\Context\ContextInterface;
18 18
 use Railt\SDL\Frontend\Context\GlobalContext;
19
-use Railt\SDL\Frontend\Context\GlobalContextInterface;
20 19
 use Railt\SDL\IR\SymbolTable;
21 20
 use Railt\SDL\IR\SymbolTable\ValueInterface;
22 21
 use Railt\SDL\IR\SymbolTableInterface;
23
-use Railt\SDL\IR\Type\TypeNameInterface;
24 22
 
25 23
 /**
26 24
  * Class Builder
Please login to merge, or discard this patch.
src/Frontend/Builder/Instruction/ImportBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * @param ContextInterface $ctx
39 39
      * @param RuleInterface $rule
40
-     * @return mixed|\Generator|void
40
+     * @return \Generator
41 41
      */
42 42
     public function reduce(ContextInterface $ctx, RuleInterface $rule)
43 43
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Instruction/VariableBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * @param ContextInterface $ctx
40 40
      * @param RuleInterface $rule
41
-     * @return \Generator|mixed|void
41
+     * @return \Generator
42 42
      */
43 43
     public function reduce(ContextInterface $ctx, RuleInterface $rule)
44 44
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Instruction/VariableReassigmentBuilder.php 1 patch
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
      * @param ContextInterface $ctx
33 33
      * @param RuleInterface $rule
34
-     * @return \Generator|mixed|void
34
+     * @return \Generator
35 35
      */
36 36
     public function reduce(ContextInterface $ctx, RuleInterface $rule)
37 37
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/TypeDefinitionBuilder.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @param ContextInterface $ctx
40 40
      * @param RuleInterface $rule
41
-     * @return \Generator|Definition
41
+     * @return \Generator
42 42
      * @throws InvalidArgumentException
43 43
      */
44 44
     public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     /**
62 62
      * @param RuleInterface $argument
63
-     * @return \Generator|TypeNameInterface
63
+     * @return \Generator
64 64
      */
65 65
     private function getArgumentName(RuleInterface $argument): \Generator
66 66
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     /**
72 72
      * @param RuleInterface $argument
73
-     * @return \Generator|TypeNameInterface
73
+     * @return \Generator
74 74
      */
75 75
     private function getArgumentValue(RuleInterface $argument): \Generator
76 76
     {
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -11,14 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Railt\Parser\Ast\RuleInterface;
13 13
 use Railt\SDL\Exception\InvalidArgumentException;
14
-use Railt\SDL\Frontend\AST\TypeNameNode;
15 14
 use Railt\SDL\Frontend\Builder\Definition\Definition;
16 15
 use Railt\SDL\Frontend\Context\ContextInterface;
17
-use Railt\SDL\Frontend\Matcher;
18
-use Railt\SDL\Frontend\Parser;
19 16
 use Railt\SDL\IR\SymbolTable\ValueInterface;
20
-use Railt\SDL\IR\Type;
21
-use Railt\SDL\IR\Type\Name;
22 17
 use Railt\SDL\IR\Type\TypeNameInterface;
23 18
 
24 19
 /**
Please login to merge, or discard this patch.
src/Frontend/Builder/Value/ScalarValueBuilder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * @param ContextInterface $ctx
44
-     * @param RuleInterface|AstValueInterface $rule
45
-     * @return mixed|Value
44
+     * @param RuleInterface $rule
45
+     * @return Value|null
46 46
      */
47 47
     public function reduce(ContextInterface $ctx, RuleInterface $rule)
48 48
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Value/TypeInvocationBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * @param ContextInterface $ctx
37 37
      * @param RuleInterface $rule
38
-     * @return \Generator|ValueInterface
38
+     * @return \Generator
39 39
      */
40 40
     public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator
41 41
     {
Please login to merge, or discard this patch.