Test Failed
Push — master ( b8c007...0971b0 )
by Kirill
02:18
created
src/Definition/Behaviour/HasDeprecation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,6 @@
 block discarded – undo
43 43
      */
44 44
     public function getDeprecationReason(): string
45 45
     {
46
-        return (string)$this->deprecation;
46
+        return (string) $this->deprecation;
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Common/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $name = \ucwords(\mb_strtolower(\preg_replace('/\W+/u', ' ', $name)));
24 24
 
25
-        return (string)\str_replace(' ', '', $name);
25
+        return (string) \str_replace(' ', '', $name);
26 26
     }
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
src/Dictionary/CallbackDictionary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     private function invoke(string $name, TypeDefinition $from = null): void
51 51
     {
52 52
         foreach ($this->callbacks as $callback) {
53
-            if (! $this->has($name)) {
54
-                $callback($name, $from, function (TypeDefinition $type): void {
53
+            if (!$this->has($name)) {
54
+                $callback($name, $from, function(TypeDefinition $type): void {
55 55
                     $this->add($type);
56 56
                 });
57 57
             }
Please login to merge, or discard this patch.
src/Contracts/Definition/Dependent/DirectiveLocation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      * @version SDL June 2018
111 111
      * @var string
112 112
      */
113
-    public const INTERFACE           = 'INTERFACE';
113
+    public const INTERFACE = 'INTERFACE';
114 114
 
115 115
     /**
116 116
      * @version SDL June 2018
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @version SDL June 2018
111 111
      * @var string
112 112
      */
113
-    public const INTERFACE           = 'INTERFACE';
113
+    public const interface           = 'INTERFACE';
114 114
 
115 115
     /**
116 116
      * @version SDL June 2018
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public const SDL_LOCATIONS = [
162 162
         self::SCALAR,
163 163
         self::OBJECT,
164
-        self::INTERFACE,
164
+        self::interface,
165 165
         self::UNION,
166 166
         self::ENUM,
167 167
         self::INPUT_OBJECT,
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public const LOCATION_TO_TYPES = [
182 182
         self::SCALAR                 => Type::SCALAR,
183 183
         self::OBJECT                 => Type::OBJECT,
184
-        self::INTERFACE              => Type::INTERFACE,
184
+        self::interface              => Type::interface,
185 185
         self::UNION                  => Type::UNION,
186 186
         self::ENUM                   => Type::ENUM,
187 187
         self::INPUT_OBJECT           => Type::INPUT_OBJECT,
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
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @param TypeDefinition $definition
39 39
      * @return bool
40 40
      */
41
-    public function instanceOf(TypeDefinition $definition): bool;
41
+    public function instanceof(TypeDefinition $definition): bool;
42 42
 
43 43
     /**
44 44
      * @return Dictionary
Please login to merge, or discard this patch.
src/Type.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      * @param TypeInterface $type
115 115
      * @return bool
116 116
      */
117
-    public function instanceOf(TypeInterface $type): bool
117
+    public function instanceof(TypeInterface $type): bool
118 118
     {
119 119
         $needle = $type->getName();
120 120
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $types = \array_merge(static::DEPENDENT_TYPES, static::ROOT_TYPES);
66 66
 
67
-        if (! \in_array($name, $types, true)) {
67
+        if (!\in_array($name, $types, true)) {
68 68
             throw new TypeConflictException(\sprintf('Invalid type name %s', $this));
69 69
         }
70 70
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     private function bootInheritance(\SplStack $stack, array $children = []): void
106 106
     {
107
-        $push = function (string $type) use ($stack): void {
107
+        $push = function(string $type) use ($stack): void {
108 108
             self::$inheritance[$type] = \array_values(\iterator_to_array($stack));
109 109
             self::$inheritance[$type][] = static::ROOT_TYPE;
110 110
 
Please login to merge, or discard this patch.
src/AbstractTypeDefinition.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      * @param TypeDefinition $definition
89 89
      * @return bool
90 90
      */
91
-    public function instanceOf(TypeDefinition $definition): bool
91
+    public function instanceof(TypeDefinition $definition): bool
92 92
     {
93 93
         if ($definition::getType()->is(Type::ANY)) {
94 94
             return true;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getDescription(): string
56 56
     {
57
-        return (string)$this->description;
57
+        return (string) $this->description;
58 58
     }
59 59
 
60 60
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     protected function verifyInputType(TypeDefinition $type): void
129 129
     {
130
-        if (! $type::getType()->isInputable()) {
130
+        if (!$type::getType()->isInputable()) {
131 131
             $error = 'Type %s can contains only inputable types, but %s given';
132 132
             throw $this->error(new TypeConflictException(\sprintf($error, $this, $type)));
133 133
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected function verifyOutputType(TypeDefinition $type): void
141 141
     {
142
-        if (! $type::getType()->isInputable()) {
142
+        if (!$type::getType()->isInputable()) {
143 143
             $error = 'Type %s can not be defined as return type hint of %s';
144 144
             throw $this->error(new TypeConflictException(\sprintf($error, $type, $this)));
145 145
         }
Please login to merge, or discard this patch.
src/Stdlib/GraphQLDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * @var string
34 34
      */
35
-    public const STDLIB_SCHEMA_PATH = __DIR__ . '/../../resources/stdlib.graphqls';
35
+    public const STDLIB_SCHEMA_PATH = __DIR__.'/../../resources/stdlib.graphqls';
36 36
 
37 37
     /**
38 38
      * GraphQLDocument constructor.
Please login to merge, or discard this patch.
src/Stdlib/Scalar/IdScalar.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 an object or as the key for a cache. The ID type is serialized in the 
31 31
 same way as a String; however, defining it as an ID signifies that it 
32 32
 is not intended to be human‐readable.
33
-Description;
33
+description;
34 34
 
35 35
     /**
36 36
      * BooleanScalar constructor.
Please login to merge, or discard this patch.