Test Failed
Push — master ( a0eed4...bb00ac )
by Kirill
149:40
created
src/Backend.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @param iterable|Definition[] $ir
61
-     * @return iterable|Definition[]
61
+     * @return \Generator
62 62
      * @throws Exception\InternalException
63 63
      */
64 64
     private function validate(iterable $ir): iterable
Please login to merge, or discard this patch.
src/Backend/Generator.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
     /**
40 40
      * @param Readable $file
41
-     * @param iterable $ir
41
+     * @param \Generator $ir
42 42
      * @return Document
43 43
      */
44 44
     public function generate(Readable $file, iterable $ir): Document
Please login to merge, or discard this patch.
src/Backend/Validator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-     * @param null|Readable|File $schema
55
+     * @param null|Readable $schema
56 56
      * @return mixed|array|object
57 57
      */
58 58
     private function loadJsonSchema(?Readable $schema)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @var string
26 26
      */
27
-    public const RAILT_SDL_1_2 = __DIR__ . '/../../resources/rlsdl-1.2.json';
27
+    public const RAILT_SDL_1_2 = __DIR__.'/../../resources/rlsdl-1.2.json';
28 28
 
29 29
     /**
30 30
      * @var string
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->validator->reset();
75 75
         $this->validator->validate($json, $this->schema, Constraint::CHECK_MODE_VALIDATE_SCHEMA);
76 76
 
77
-        if (! $this->validator->isValid()) {
77
+        if (!$this->validator->isValid()) {
78 78
             $error = \implode(\PHP_EOL, [
79 79
                 'An internal representation code errors was found: ',
80 80
                 $this->errorsToString($this->validator->getErrors())
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function errorsToString(array $errors): string
94 94
     {
95
-        $applicator = function (array $error): string {
95
+        $applicator = function(array $error): string {
96 96
             if ($error['property']) {
97 97
                 return \sprintf(' - [%s] %s.', $error['property'], $error['message']);
98 98
             }
Please login to merge, or discard this patch.
src/Compiler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Railt\Io\Readable;
17 17
 use Railt\Reflection\Contracts\Document as DocumentInterface;
18 18
 use Railt\Reflection\Reflection;
19
-use Railt\SDL\Backend\Generator;
20 19
 use Railt\SDL\Compiler\Dictionary;
21 20
 use Railt\SDL\Compiler\Store;
22 21
 use Railt\SDL\Exception\CompilerException;
Please login to merge, or discard this 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
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function generate(Readable $file, iterable $ir): DocumentInterface
114 114
     {
115
-        return $this->wrap(function () use ($file, $ir) {
115
+        return $this->wrap(function() use ($file, $ir) {
116 116
             return $this->back->run($file, $ir);
117 117
         });
118 118
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function ir(Readable $readable): iterable
147 147
     {
148
-        return $this->wrap(function () use ($readable) {
148
+        return $this->wrap(function() use ($readable) {
149 149
             return $this->front->load($readable);
150 150
         });
151 151
     }
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/Provider/DirectivesProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 trait DirectivesProvider
18 18
 {
19 19
     /**
20
-     * @return iterable|DirectiveValueNode[]
20
+     * @return \Generator
21 21
      */
22 22
     public function getDirectiveNodes(): iterable
23 23
     {
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ArgumentValueNode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     use DependentNameProvider;
24 24
 
25 25
     /**
26
-     * @return \Generator|mixed
26
+     * @return \Generator
27 27
      */
28 28
     protected function parse()
29 29
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Railt\Io\Readable;
13 13
 use Railt\Parser\Ast\RuleInterface;
14 14
 use Railt\SDL\Frontend\AST\Definition\Provider\DependentNameProvider;
15
-use Railt\SDL\IR\Value;
16 15
 use Railt\SDL\IR\ValueInterface;
17 16
 
18 17
 /**
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/ArgumentBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @param Readable $file
26 26
      * @param RuleInterface|ArgumentDefinitionNode $ast
27
-     * @return \Generator|mixed
27
+     * @return \Generator
28 28
      */
29 29
     public function build(Readable $file, RuleInterface $ast)
30 30
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/InputFieldBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @param Readable $file
26 26
      * @param RuleInterface|InputFieldDefinitionNode $ast
27
-     * @return \Generator|mixed
27
+     * @return \Generator
28 28
      */
29 29
     public function build(Readable $file, RuleInterface $ast)
30 30
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/ScalarBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @param Readable $file
26 26
      * @param RuleInterface|ScalarDefinitionNode $ast
27
-     * @return \Generator|mixed
27
+     * @return \Generator
28 28
      */
29 29
     public function build(Readable $file, RuleInterface $ast)
30 30
     {
Please login to merge, or discard this patch.