Test Failed
Push — master ( dbe410...b8c007 )
by Kirill
02:19
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/HasInheritance.php 1 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 1 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/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/Definition/Dependent/DirectiveLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $locations = \array_merge(static::EXECUTABLE_LOCATIONS, static::SDL_LOCATIONS);
30 30
 
31
-        if (! \in_array($this->name, $locations, true)) {
31
+        if (!\in_array($this->name, $locations, true)) {
32 32
             throw $this->error(new TypeConflictException(\sprintf('Invalid name of %s', $this)));
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
src/Stdlib/Directive/IncludeDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean'))
56 56
                 ->withLine(67)
57 57
                 ->withModifiers(ArgumentDefinition::IS_NOT_NULL))
58
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
58
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
59 59
                 return new DirectiveLocation($this, $location);
60 60
             }, self::LOCATIONS));
61 61
     }
Please login to merge, or discard this patch.
src/Stdlib/Directive/SkipDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean'))
55 55
                 ->withLine(56)
56 56
                 ->withModifiers(ArgumentDefinition::IS_NOT_NULL))
57
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
57
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
58 58
                 return new DirectiveLocation($this, $location);
59 59
             }, self::LOCATIONS));
60 60
     }
Please login to merge, or discard this patch.
src/Stdlib/Directive/DeprecatedDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             ->withArgument((new ArgumentDefinition($this, 'reason', 'String'))
63 63
                 ->withLine(39)
64 64
                 ->withDefaultValue('No longer supported'))
65
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
65
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
66 66
                 return new DirectiveLocation($this, $location);
67 67
             }, self::LOCATIONS));
68 68
     }
Please login to merge, or discard this patch.
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.