Test Failed
Push — master ( d59132...fd300c )
by Kirill
03:01
created
src/AbstractDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
      */
169 169
     protected function error(\Throwable $error): ExternalFileException
170 170
     {
171
-        if (! $error instanceof ExternalFileException) {
171
+        if (!$error instanceof ExternalFileException) {
172 172
             $error = new ReflectionException($error->getMessage(), $error->getCode(), $error);
173 173
         }
174 174
 
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasDefinitions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      */
138 138
     public function getDefinition(string $name): ?TypeDefinition
139 139
     {
140
-        if (! \in_array($name, $this->types, true)) {
140
+        if (!\in_array($name, $this->types, true)) {
141 141
             return null;
142 142
         }
143 143
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     abstract protected function fetch($type): TypeDefinition;
30 30
 
31 31
     /**
32
-     * @return iterable|TypeDefinition[]
32
+     * @return \Generator
33 33
      */
34 34
     public function getDefinitions(): iterable
35 35
     {
Please login to merge, or discard this patch.
src/Definition/Dependent/AbstractDependentTypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     public function __toString(): string
50 50
     {
51 51
         try {
52
-            $parent = (string)$this->getParentDefinition();
52
+            $parent = (string) $this->getParentDefinition();
53 53
         } catch (\Throwable $e) {
54 54
             $parent = '?<?>';
55 55
         }
Please login to merge, or discard this patch.
src/Introspection/IntrospectionDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * @var string
33 33
      */
34
-    public const INTROSPECTION_SCHEMA_PATH = __DIR__ . '/../../resources/introspection.graphqls';
34
+    public const INTROSPECTION_SCHEMA_PATH = __DIR__.'/../../resources/introspection.graphqls';
35 35
 
36 36
     /**
37 37
      * IntrospectionDocument constructor.
Please login to merge, or discard this patch.
src/Stdlib/StdlibDocument.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/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, Definition $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/Invocation/Behaviour/HasDirectives.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string|null $name
38
-     * @return iterable|DirectiveInvocation[]|\Generator
38
+     * @return \Generator
39 39
      */
40 40
     public function getDirectives(string $name = null): iterable
41 41
     {
@@ -48,6 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     /**
50 50
      * @param DirectiveInvocation ...$invocations
51
+     * @param DirectiveInvocation[] $invocations
51 52
      * @return ProvidesDirectives|$this
52 53
      */
53 54
     public function withDirective(DirectiveInvocation ...$invocations): ProvidesDirectives
Please login to merge, or discard this patch.
src/Invocation/DirectiveInvocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function __toString(): string
36 36
     {
37
-        return '@' . parent::__toString();
37
+        return '@'.parent::__toString();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasInterfaces.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     abstract protected function fetch($type): TypeDefinition;
31 31
 
32 32
     /**
33
-     * @param string|TypeDefinition $interface
33
+     * @param TypeDefinition $interface
34 34
      * @return bool
35 35
      */
36 36
     public function isImplements($interface): bool
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return iterable|InterfaceDefinition[]
50
+     * @return \Generator
51 51
      */
52 52
     public function getInterfaces(): iterable
53 53
     {
Please login to merge, or discard this patch.