Test Failed
Push — master ( f55788...a0eed4 )
by Kirill
11:37 queued 09:09
created
src/Frontend/Builder/Definition/InterfaceBuilder.php 2 patches
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|InterfaceDefinitionNode $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.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $interface = new TypeDefinition($ast->getFullName());
32 32
         $interface->in($file, $ast->getOffset());
33 33
 
34
-        $interface->type        = Type::INTERFACE;
34
+        $interface->type        = Type::interface;
35 35
         $interface->description = $ast->getDescription();
36 36
 
37 37
         $this->loadInterfaces($ast, $interface);
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/ObjectBuilder.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|ObjectDefinitionNode $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 TypeDefinition
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/SchemaBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * @param Readable $file
28 28
      * @param RuleInterface|SchemaDefinitionNode $ast
29
-     * @return \Generator|mixed
29
+     * @return \Generator
30 30
      */
31 31
     public function build(Readable $file, RuleInterface $ast)
32 32
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/SchemaFieldBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * @param Readable $file
27 27
      * @param RuleInterface|SchemaFieldDefinitionNode $ast
28
-     * @return \Generator|mixed
28
+     * @return TypeDefinition
29 29
      */
30 30
     public function build(Readable $file, RuleInterface $ast)
31 31
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/UnionBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * @param Readable $file
27 27
      * @param RuleInterface|UnionDefinitionNode $ast
28
-     * @return \Generator|mixed
28
+     * @return TypeDefinition
29 29
      */
30 30
     public function build(Readable $file, RuleInterface $ast)
31 31
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/DocumentBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * @param Readable $file
23 23
      * @param RuleInterface $ast
24
-     * @return \Generator|mixed|Definition|\Railt\SDL\IR\TypeDefinition|\Railt\SDL\IR\TypeInvocation
24
+     * @return \Generator
25 25
      */
26 26
     public function build(Readable $file, RuleInterface $ast)
27 27
     {
Please login to merge, or discard this patch.
src/IR/ValueObject.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * Create a new ValueObject container instance.
26 26
      *
27 27
      * @param iterable $attributes
28
-     * @return void
28
+     * @return \Railt\Io\Readable
29 29
      */
30 30
     public function __construct(iterable $attributes = [])
31 31
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * Set the value at the given offset.
157 157
      *
158
-     * @param string|int $offset
158
+     * @param string $offset
159 159
      * @param mixed $value
160 160
      * @return void
161 161
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function jsonSerialize(): array
110 110
     {
111
-        $applicator = function ($value) {
111
+        $applicator = function($value) {
112 112
             if (\is_object($value) && \method_exists($value, '__toString')) {
113
-                return (string)$value;
113
+                return (string) $value;
114 114
             }
115 115
 
116 116
             return $value;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function toJson(int $options = 0): string
129 129
     {
130
-        return (string)\json_encode($this->jsonSerialize(), $options);
130
+        return (string) \json_encode($this->jsonSerialize(), $options);
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
src/IR/TypeHint.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function isNonNull(): bool
39 39
     {
40
-        return (bool)($this->modifiers & static::IS_NOT_NULL);
40
+        return (bool) ($this->modifiers & static::IS_NOT_NULL);
41 41
     }
42 42
 
43 43
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function isList(): bool
47 47
     {
48
-        return (bool)($this->modifiers & static::IS_LIST);
48
+        return (bool) ($this->modifiers & static::IS_LIST);
49 49
     }
50 50
 
51 51
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function isListOfNonNulls(): bool
55 55
     {
56
-        return (bool)($this->modifiers & static::IS_LIST_OF_NOT_NULL);
56
+        return (bool) ($this->modifiers & static::IS_LIST_OF_NOT_NULL);
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.