Test Failed
Push — master ( f55788...a0eed4 )
by Kirill
11:37 queued 09:09
created
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
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         self::SCHEMA,
120 120
         self::SCALAR,
121 121
         self::OBJECT,
122
-        self::INTERFACE,
122
+        self::interface,
123 123
         self::UNION,
124 124
         self::ENUM,
125 125
         self::INPUT_OBJECT,
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     public const ALLOWS_TO_OUTPUT = [
148 148
         self::SCALAR,
149 149
         self::OBJECT,
150
-        self::INTERFACE,
150
+        self::interface,
151 151
         self::UNION,
152 152
         self::ENUM,
153 153
         self::INPUT_OBJECT,
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @var string[]|array[]
165 165
      */
166 166
     public const INHERITANCE_TREE = [
167
-        self::INTERFACE => [
167
+        self::interface => [
168 168
             self::OBJECT => [
169 169
                 self::INPUT_OBJECT,
170 170
             ],
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param TypeInterface $type
217 217
      * @return bool
218 218
      */
219
-    public function instanceOf(self $type): bool;
219
+    public function instanceof(self $type): bool;
220 220
 
221 221
     /**
222 222
      * Returns true if the type is the same as the current type.
Please login to merge, or discard this patch.
src/Frontend/Builder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      * @return \Generator
81 81
      * @throws \LogicException
82 82
      */
83
-    private function forEach(Readable $readable, RuleInterface $ast): \Generator
83
+    private function forEach (Readable $readable, RuleInterface $ast): \Generator
84 84
     {
85 85
         $builder = $this->factory->resolve($readable, $ast);
86 86
         $result  = $builder->build($readable, $ast);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      * @return \Generator
81 81
      * @throws \LogicException
82 82
      */
83
-    private function forEach(Readable $readable, RuleInterface $ast): \Generator
83
+    private function foreach(Readable $readable, RuleInterface $ast): \Generator
84 84
     {
85 85
         $builder = $this->factory->resolve($readable, $ast);
86 86
         $result  = $builder->build($readable, $ast);
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/InterfaceBuilder.php 1 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.