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 1 patch
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.
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/Definition/Behaviour/HasInheritance.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     abstract protected function fetch($type): TypeDefinition;
33 33
 
34 34
     /**
35
-     * @return iterable|TypeDefinition[]
35
+     * @return \Generator
36 36
      */
37 37
     public function getParents(): iterable
38 38
     {
@@ -61,7 +61,8 @@  discard block
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * @param TypeDefinition ...$definitions
64
-     * @return ProvidesInheritance|$this
64
+     * @param TypeDefinition[] $definitions
65
+     * @return TypeDefinition[]
65 66
      * @throws TypeConflictException
66 67
      */
67 68
     public function extends(TypeDefinition ...$definitions): ProvidesInheritance
@@ -88,7 +89,7 @@  discard block
 block discarded – undo
88 89
     }
89 90
 
90 91
     /**
91
-     * @param string|TypeDefinition $type
92
+     * @param TypeDefinition $type
92 93
      * @return bool
93 94
      */
94 95
     public function isExtends($type): bool
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     private function verifyExtensionType(TypeDefinition $def): void
83 83
     {
84
-        if (! $def::getType()->is(static::getType()->getName())) {
84
+        if (!$def::getType()->is(static::getType()->getName())) {
85 85
             $error = \sprintf('Type %s can extends only %s types, but %s given.', $this, static::getType(), $def);
86 86
             throw $this->error(new TypeConflictException($error));
87 87
         }
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasTypeIndication.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @param int ...$values
74
+     * @param integer[] $values
74 75
      * @return ProvidesTypeIndication|$this
75 76
      */
76 77
     public function withModifiers(int ...$values): ProvidesTypeIndication
@@ -83,7 +84,7 @@  discard block
 block discarded – undo
83 84
     }
84 85
 
85 86
     /**
86
-     * @param string|TypeDefinition $type
87
+     * @param string $type
87 88
      * @return ProvidesTypeIndication|$this
88 89
      */
89 90
     public function withTypeDefinition($type): ProvidesTypeIndication
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     public function __toString(): string
101 101
     {
102 102
         try {
103
-            $parent = (string)$this->getDefinition();
103
+            $parent = (string) $this->getDefinition();
104 104
         } catch (\Throwable $e) {
105 105
             $parent = '?<?>';
106 106
         }
Please login to merge, or discard this patch.
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 1 patch
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.