Completed
Push — master ( 96b2f8...da2c9c )
by Kirill
05:58
created
src/Definition/InterfaceDefinition.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
      */
29 29
     public static function getType(): TypeInterface
30 30
     {
31
-        return Type::of(Type::INTERFACE);
31
+        return Type::of(Type::interface);
32 32
     }
33 33
 
34 34
     /**
35 35
      * @param TypeDefinition $definition
36 36
      * @return bool
37 37
      */
38
-    public function instanceOf(TypeDefinition $definition): bool
38
+    public function instanceof(TypeDefinition $definition): bool
39 39
     {
40
-        return $this->instanceOfInterface($definition) || parent::instanceOf($definition);
40
+        return $this->instanceOfInterface($definition) || parent::instanceof($definition);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Contracts/Definition/TypeDefinition.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
      * @param TypeDefinition $definition
37 37
      * @return bool
38 38
      */
39
-    public function instanceOf(TypeDefinition $definition): bool;
39
+    public function instanceof(TypeDefinition $definition): bool;
40 40
 }
Please login to merge, or discard this patch.
src/Contracts/Definition/Dependent/DirectiveLocation.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         Type::ENUM_VALUE,
42 42
         Type::UNION,
43 43
         Type::INPUT_UNION,
44
-        Type::INTERFACE,
44
+        Type::interface,
45 45
         Type::SCALAR,
46 46
         Type::FIELD_DEFINITION,
47 47
         Type::ARGUMENT_DEFINITION,
Please login to merge, or discard this patch.
src/Contracts/Type.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Type of interface definition.
64 64
      */
65
-    public const INTERFACE = 'INTERFACE';
65
+    public const interface = 'INTERFACE';
66 66
 
67 67
     /**
68 68
      * Type of enum value definition.
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param Type $type
135 135
      * @return bool
136 136
      */
137
-    public function instanceOf(Type $type): bool;
137
+    public function instanceof(Type $type): bool;
138 138
 
139 139
     /**
140 140
      * @return string
Please login to merge, or discard this patch.
src/Type.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * @param TypeInterface $type
68 68
      * @return bool
69 69
      */
70
-    public function instanceOf(TypeInterface $type): bool
70
+    public function instanceof(TypeInterface $type): bool
71 71
     {
72 72
         return $this instanceof $type;
73 73
     }
Please login to merge, or discard this patch.
src/AbstractTypeDefinition.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * @param TypeDefinition $definition
64 64
      * @return bool
65 65
      */
66
-    public function instanceOf(TypeDefinition $definition): bool
66
+    public function instanceof(TypeDefinition $definition): bool
67 67
     {
68 68
         return $this instanceof $definition;
69 69
     }
Please login to merge, or discard this patch.