Passed
Push — master ( 9f01ea...4d697a )
by Ross
04:45
created
src/HandlerReturnTypeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     ): Type {
59 59
         $commandType = $scope->getType($methodCall->args[0]->value);
60 60
 
61
-        if (! $commandType instanceof ObjectType) {
61
+        if (!$commandType instanceof ObjectType) {
62 62
             return new MixedType();
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/MappingLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public static function loadBootstrapFile(string $filename): CommandToHandlerMapping
12 12
     {
13
-        if (! file_exists($filename) || ! is_readable($filename)) {
13
+        if (!file_exists($filename) || !is_readable($filename)) {
14 14
             throw new ShouldNotHappenException('Tactician-PHPStan bootstrap file could not be located.');
15 15
         }
16 16
 
Please login to merge, or discard this patch.
src/TacticianRuleSet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function processNode(Node $methodCall, Scope $scope): array
50 50
     {
51
-        if (! $methodCall instanceof MethodCall) {
51
+        if (!$methodCall instanceof MethodCall) {
52 52
             return [];
53 53
         }
54 54
 
55 55
         $type = $scope->getType($methodCall->var);
56 56
 
57
-        if (! (new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) {
57
+        if (!(new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) {
58 58
             return [];
59 59
         }
60 60
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         if ($type instanceof UnionType) {
152 152
             return array_filter(
153 153
                 $type->getTypes(),
154
-                function (Type $type) {
154
+                function(Type $type) {
155 155
                     return $type instanceof TypeWithClassName;
156 156
                 }
157 157
             );
Please login to merge, or discard this patch.