Test Failed
Push — master ( dbe410...b8c007 )
by Kirill
02:19
created
src/Type.php 1 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 1 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/Reflection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         parent::__construct($parent ?? new SimpleDictionary());
40 40
 
41
-        $this->wrap(function () {
41
+        $this->wrap(function() {
42 42
             $this->boot();
43 43
         });
44 44
     }
Please login to merge, or discard this patch.