Completed
Push — master ( bb00ac...e3b5b4 )
by Kirill
330:24 queued 149:31
created
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.
src/Frontend/Builder/Definition/SchemaFieldBuilder.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|SchemaFieldDefinitionNode $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/UnionBuilder.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|UnionDefinitionNode $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/Extension/EnumExtensionBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * @param Readable $file
25 25
      * @param RuleInterface $ast
26
-     * @return \Generator|mixed|Definition
26
+     * @return \Generator
27 27
      */
28 28
     public function build(Readable $file, RuleInterface $ast)
29 29
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Extension/UnionExtensionBuilder.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 $ast
27
-     * @return \Generator|mixed|void
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/Invocation/DirectiveInvocationBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * @param Readable $file
25 25
      * @param RuleInterface|DirectiveValueNode $ast
26
-     * @return \Generator|mixed|void
26
+     * @return \Generator
27 27
      */
28 28
     public function build(Readable $file, RuleInterface $ast)
29 29
     {
Please login to merge, or discard this patch.
src/Frontend/Builder/Invocation/ValueBuilder.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
     /**
23 23
      * @param Readable $file
24
-     * @param AstValueInterface|RuleInterface $ast
24
+     * @param RuleInterface $ast
25 25
      * @return \Generator|mixed
26 26
      */
27 27
     public function build(Readable $file, RuleInterface $ast)
Please login to merge, or discard this patch.
src/IR/ValueObject.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     /**
187 187
      * Set the value at the given offset.
188 188
      *
189
-     * @param string|int $offset
189
+     * @param string $offset
190 190
      * @param mixed $value
191 191
      * @return void
192 192
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $skipNullable = $this->skip === static::SKIP_NULL && $value === null;
81 81
 
82
-        $skipEmpty = $this->skip === static::SKIP_EMPTY && ! $value;
82
+        $skipEmpty = $this->skip === static::SKIP_EMPTY && !$value;
83 83
 
84
-        if (! $skipEmpty && ! $skipNullable) {
84
+        if (!$skipEmpty && !$skipNullable) {
85 85
             $this->attributes[$key ?? \count($this->attributes)] =
86 86
                 \is_iterable($value) ? new self($value) : $value;
87 87
         }
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function jsonSerialize()
141 141
     {
142
-        $applicator = function ($value) {
142
+        $applicator = function($value) {
143 143
             if (\is_object($value) && \method_exists($value, '__toString')) {
144
-                return (string)$value;
144
+                return (string) $value;
145 145
             }
146 146
 
147 147
             return $value;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function toJson(int $options = 0): string
160 160
     {
161
-        return (string)\json_encode($this->jsonSerialize(), $options);
161
+        return (string) \json_encode($this->jsonSerialize(), $options);
162 162
     }
163 163
 
164 164
     /**
Please login to merge, or discard this patch.