Test Failed
Push — master ( 0623fe...690100 )
by Kirill
02:33
created
src/Frontend/AST/Definition/InterfaceDefinitionNode.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
      */
32 32
     public function getType(): TypeInterface
33 33
     {
34
-        return Type::of(Type::INTERFACE);
34
+        return Type::of(Type::interface);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Frontend/IR/Value/ValueInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param TypeDefinition $type
38 38
      * @return bool
39 39
      */
40
-    public function instanceOf(TypeDefinition $type): bool;
40
+    public function instanceof(TypeDefinition $type): bool;
41 41
 
42 42
     /**
43 43
      * @param TypeInterface $type
Please login to merge, or discard this patch.
src/Frontend/IR/Value/AbstractValue.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      * @param TypeDefinition $type
109 109
      * @return bool
110 110
      */
111
-    public function instanceOf(TypeDefinition $type): bool
111
+    public function instanceof(TypeDefinition $type): bool
112 112
     {
113 113
         return $this->type->instanceOf($type);
114 114
     }
Please login to merge, or discard this patch.
src/Compiler.php 1 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
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function generate(Readable $file, iterable $opcodes): DocumentInterface
116 116
     {
117
-        return $this->wrap(function () use ($file, $opcodes) {
117
+        return $this->wrap(function() use ($file, $opcodes) {
118 118
             return $this->back->run($file, $opcodes);
119 119
         });
120 120
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function ir(Readable $readable): iterable
151 151
     {
152
-        return $this->wrap(function () use ($readable) {
152
+        return $this->wrap(function() use ($readable) {
153 153
             return $this->front->load($readable);
154 154
         });
155 155
     }
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ArgumentInvocationNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param Context $context
37
-     * @return iterable
37
+     * @return \Generator
38 38
      */
39 39
     public function getOpcodes(Context $context): iterable
40 40
     {
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/DirectiveInvocationNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param Context $context
37
-     * @return iterable
37
+     * @return \Generator
38 38
      */
39 39
     public function getOpcodes(Context $context): iterable
40 40
     {
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/InputInvocationNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @return iterable|ValueInterface[]
43
+     * @return \Generator
44 44
      */
45 45
     private function getInnerValues(): iterable
46 46
     {
Please login to merge, or discard this patch.
src/Frontend/AST/Support/TypeNameProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @return ValueInterface|null
47
+     * @return ValueInterface
48 48
      */
49 49
     protected function getFullNameValue(): ?ValueInterface
50 50
     {
Please login to merge, or discard this patch.
src/Frontend/IR/Value/InputValue.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * InputValue constructor.
19
-     * @param iterable $values
19
+     * @param \Generator $values
20 20
      * @param int $offset
21 21
      */
22 22
     public function __construct(iterable $values, int $offset = 0)
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return iterable
61
+     * @return \Generator
62 62
      */
63 63
     public function getValue(): iterable
64 64
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
          * @var ValueInterface $value
52 52
          */
53 53
         foreach ($this->getValue() as $key => $value) {
54
-            $result[] = $key->toString() . ': ' . (string)$value;
54
+            $result[] = $key->toString().': '.(string) $value;
55 55
         }
56 56
 
57 57
         return \sprintf('{%s}', \implode(', ', $result));
Please login to merge, or discard this patch.