Test Failed
Push — master ( a0eed4...bb00ac )
by Kirill
149:40
created
src/Frontend/Builder/Extension/UnionExtensionBuilder.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 $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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Railt\SDL\Frontend\Builder\ExtensionBuilder;
15 15
 use Railt\SDL\IR\Definition;
16 16
 use Railt\SDL\IR\Type;
17
-use Railt\SDL\IR\TypeDefinition;
18 17
 
19 18
 /**
20 19
  * Class UnionExtensionBuilder
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.
src/IR/TypeInterface.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @var string
39 39
      */
40
-    public const INTERFACE = 'Interface';
40
+    public const interface = 'Interface';
41 41
 
42 42
     /**
43 43
      * @var string
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         self::SCHEMA,
156 156
         self::SCALAR,
157 157
         self::OBJECT,
158
-        self::INTERFACE,
158
+        self::interface,
159 159
         self::UNION,
160 160
         self::ENUM,
161 161
         self::INPUT_OBJECT,
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     public const ALLOWS_TO_OUTPUT = [
204 204
         self::SCALAR,
205 205
         self::OBJECT,
206
-        self::INTERFACE,
206
+        self::interface,
207 207
         self::UNION,
208 208
         self::ENUM,
209 209
         self::INPUT_OBJECT,
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @var string[]|array[]
221 221
      */
222 222
     public const INHERITANCE_TREE = [
223
-        self::INTERFACE => [
223
+        self::interface => [
224 224
             self::OBJECT => [
225 225
                 self::INPUT_OBJECT,
226 226
             ],
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * @param TypeInterface $type
278 278
      * @return bool
279 279
      */
280
-    public function instanceOf(TypeInterface $type): bool;
280
+    public function instanceof(TypeInterface $type): bool;
281 281
 
282 282
     /**
283 283
      * Returns true if the type is the same as the current type.
Please login to merge, or discard this patch.
src/Console/SDLGrammarCompileCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var string
23 23
      */
24
-    private const SCHEMA_SDL_GRAMMAR = __DIR__ . '/../../resources/sdl/grammar.pp2';
24
+    private const SCHEMA_SDL_GRAMMAR = __DIR__.'/../../resources/sdl/grammar.pp2';
25 25
 
26 26
     /**
27 27
      * @var string
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         Compiler::load(File::fromPathname(self::SCHEMA_SDL_GRAMMAR))
44 44
             ->setClassName('Parser')
45 45
             ->setNamespace('Railt\\SDL\\Frontend')
46
-            ->saveTo(__DIR__ . '/../Frontend');
46
+            ->saveTo(__DIR__.'/../Frontend');
47 47
 
48 48
         $this->info('OK');
49 49
     }
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/NumberValueNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 return $this->parseInt($value->getValue());
53 53
         }
54 54
 
55
-        return (float)$value->getValue();
55
+        return (float) $value->getValue();
56 56
     }
57 57
 
58 58
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function parseExponential(string $value): float
81 81
     {
82
-        return (float)$value;
82
+        return (float) $value;
83 83
     }
84 84
 
85 85
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function parseFloat(string $value): float
90 90
     {
91
-        return (float)$value;
91
+        return (float) $value;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.