Test Failed
Push — master ( e04cac...591538 )
by Kirill
03:14
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/AbstractTypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function getDescription(): string
50 50
     {
51
-        return (string)$this->description;
51
+        return (string) $this->description;
52 52
     }
53 53
 
54 54
     /**
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/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/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     private function bootInheritance(\SplStack $stack, array $children = []): void
72 72
     {
73
-        $push = function (string $type) use ($stack): void {
73
+        $push = function(string $type) use ($stack): void {
74 74
             self::$inheritance[$type] = \array_values(\iterator_to_array($stack));
75 75
             self::$inheritance[$type][] = static::ROOT_TYPE;
76 76
 
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function __toString(): string
66 66
     {
67 67
         try {
68
-            $parent = (string)$this->getDefinition();
68
+            $parent = (string) $this->getDefinition();
69 69
         } catch (\Throwable $e) {
70 70
             $parent = '?<?>';
71 71
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         if ($this->isList()) {
78
-            $parent = '[' . $parent . ']';
78
+            $parent = '['.$parent.']';
79 79
         }
80 80
 
81 81
         if ($this->isListOfNonNulls()) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function isNonNull(): bool
93 93
     {
94
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
94
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
95 95
     }
96 96
 
97 97
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function isList(): bool
101 101
     {
102
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST);
102
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST);
103 103
     }
104 104
 
105 105
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function isListOfNonNulls(): bool
109 109
     {
110
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
110
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
111 111
     }
112 112
 
113 113
     /**
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 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.