Completed
Pull Request — master (#55)
by
unknown
01:16
created
src/Rules/Exceptions/MustRethrowRule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
         // Let's only apply the filter to \Exception, \RuntimeException or \Throwable
43 43
         $exceptionType = null;
44 44
         foreach ($node->types as $type) {
45
-            if (in_array((string)$type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
46
-                $exceptionType = (string)$type;
45
+            if (in_array((string) $type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
46
+                $exceptionType = (string) $type;
47 47
                 break;
48 48
             }
49 49
         }
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
                     return false;
109 109
                 }
110 110
 
111
-                $varArgs = array_filter($args, function ($arg) {
112
-                    return $arg->value instanceof Variable && $arg->value->name === $this->exceptionVarName ;
111
+                $varArgs = array_filter($args, function($arg) {
112
+                    return $arg->value instanceof Variable && $arg->value->name === $this->exceptionVarName;
113 113
                 });
114 114
 
115 115
                 return 0 !== count($varArgs);
Please login to merge, or discard this patch.