Test Failed
Push — master ( 3f86cd...7c1b50 )
by Kirill
01:29
created
src/Contracts/Definition/Behaviour/ProvidesInheritance.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,5 +51,5 @@
 block discarded – undo
51 51
      * @param TypeDefinition|string $definition
52 52
      * @return bool
53 53
      */
54
-    public function instanceOf($definition): bool;
54
+    public function instanceof($definition): bool;
55 55
 }
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasInheritance.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * @param TypeDefinition|string $type
104 104
      * @return bool
105 105
      */
106
-    public function instanceOf($type): bool
106
+    public function instanceof($type): bool
107 107
     {
108 108
         /**
109 109
          * @var TypeDefinition $type
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasTypeIndication.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function __toString(): string
67 67
     {
68
-        $parent = $this->getDictionary()->find($this->definition) ?: $this->definition . '<?>';
68
+        $parent = $this->getDictionary()->find($this->definition) ?: $this->definition.'<?>';
69 69
 
70 70
         if ($this->isNonNull()) {
71 71
             $parent .= '!';
72 72
         }
73 73
 
74 74
         if ($this->isList()) {
75
-            $parent = '[' . $parent . ']';
75
+            $parent = '['.$parent.']';
76 76
         }
77 77
 
78 78
         if ($this->isListOfNonNulls()) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function isNonNull(): bool
89 89
     {
90
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
90
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
91 91
     }
92 92
 
93 93
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function isList(): bool
97 97
     {
98
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST);
98
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST);
99 99
     }
100 100
 
101 101
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function isListOfNonNulls(): bool
105 105
     {
106
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
106
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
107 107
     }
108 108
 
109 109
     /**
Please login to merge, or discard this patch.
src/Type.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     private function bootInheritance(\SplStack $stack, array $children = []): void
69 69
     {
70
-        $push = function (string $type) use ($stack): void {
70
+        $push = function(string $type) use ($stack): void {
71 71
             self::$inheritance[$type]   = \array_values(\iterator_to_array($stack));
72 72
             self::$inheritance[$type][] = static::ROOT_TYPE;
73 73
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     /**
142 142
      * {@inheritDoc}
143 143
      */
144
-    public function instanceOf(TypeInterface $type): bool
144
+    public function instanceof(TypeInterface $type): bool
145 145
     {
146 146
         $needle = $type->getName();
147 147
 
Please login to merge, or discard this patch.
src/Contracts/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
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public const ROOT_TYPES = [
114 114
         self::SCALAR,
115 115
         self::OBJECT,
116
-        self::INTERFACE,
116
+        self::interface,
117 117
         self::UNION,
118 118
         self::ENUM,
119 119
         self::INPUT_OBJECT,
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public const ALLOWS_TO_OUTPUT = [
142 142
         self::SCALAR,
143 143
         self::OBJECT,
144
-        self::INTERFACE,
144
+        self::interface,
145 145
         self::UNION,
146 146
         self::ENUM,
147 147
         self::INPUT_OBJECT,
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @var string[]|array[]
159 159
      */
160 160
     public const INHERITANCE_TREE = [
161
-        self::INTERFACE => [
161
+        self::interface => [
162 162
             self::OBJECT => [
163 163
                 self::INPUT_OBJECT
164 164
             ],
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      * @param TypeInterface $type
211 211
      * @return bool
212 212
      */
213
-    public function instanceOf(TypeInterface $type): bool;
213
+    public function instanceof(TypeInterface $type): bool;
214 214
 
215 215
     /**
216 216
      * Returns true if the type is the same as the current type.
Please login to merge, or discard this patch.
src/Introspection/Object/FieldObject.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public const TYPE_DESCRIPTION = <<<Description
29 29
         Object and Interface types are described by a list of Fields, each of
30 30
         which has a name, potentially a list of arguments, and a return type.
31
-Description;
31
+description;
32 32
 
33 33
     /**
34 34
      * @var int
Please login to merge, or discard this patch.
src/Introspection/Object/TypeObject.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         Interface types provide the fields they describe. Abstract types,
36 36
         Union and Interface, provide the Object types possible at runtime.
37 37
         List and NonNull types compose other types.
38
-Description;
38
+description;
39 39
 
40 40
     /**
41 41
      * @var int
Please login to merge, or discard this patch.
src/Introspection/Object/DirectiveObject.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         execution behavior in ways field arguments will not suffice, such
34 34
         as conditionally including or skipping a field. Directives provide
35 35
         this by describing additional information to the executor.
36
-Description;
36
+description;
37 37
 
38 38
     /**
39 39
      * @var int
Please login to merge, or discard this patch.
src/Introspection/Object/SchemaObject.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         A GraphQL Schema defines the capabilities of a GraphQL server.
30 30
         It exposes all available types and directives on the server, as well
31 31
         as the entry points for query, mutation, and subscription operations.
32
-Description;
32
+description;
33 33
 
34 34
     /**
35 35
      * @var int
Please login to merge, or discard this patch.