Completed
Push — master ( a2aa2f...8c58cc )
by David
16s queued 11s
created
src/Rules/Exceptions/ThrowMustBundlePreviousExceptionRule.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use PhpParser\NodeTraverser;
10 10
 use PhpParser\NodeVisitorAbstract;
11 11
 use PHPStan\Analyser\Scope;
12
-use PHPStan\Broker\Broker;
13 12
 use PHPStan\Rules\Rule;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
src/Rules/Conditionals/SwitchMustContainDefaultRule.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 
6 6
 use PhpParser\Node;
7 7
 use PhpParser\Node\Stmt\Switch_;
8
-use PhpParser\NodeTraverser;
9
-use PhpParser\NodeVisitorAbstract;
10 8
 use PHPStan\Analyser\Scope;
11 9
 use PHPStan\Rules\Rule;
12 10
 use TheCodingMachine\PHPStan\Utils\PrefixGenerator;
Please login to merge, or discard this patch.
src/Rules/Superglobals/NoSuperglobalsRule.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,10 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use PhpParser\Node;
7 7
 use PHPStan\Analyser\Scope;
8
-use PHPStan\Reflection\FunctionReflection;
9
-use PHPStan\Reflection\MethodReflection;
10 8
 use PHPStan\Rules\Rule;
11
-use PHPStan\ShouldNotHappenException;
12 9
 use TheCodingMachine\PHPStan\Utils\PrefixGenerator;
13 10
 
14 11
 /**
Please login to merge, or discard this patch.
src/Rules/Exceptions/MustRethrowRule.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use PhpParser\NodeTraverser;
11 11
 use PhpParser\NodeVisitorAbstract;
12 12
 use PHPStan\Analyser\Scope;
13
-use PHPStan\Broker\Broker;
14 13
 use PHPStan\Rules\Rule;
15 14
 use RuntimeException;
16 15
 use TheCodingMachine\PHPStan\Utils\PrefixGenerator;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         // Let's only apply the filter to \Exception, \RuntimeException or \Throwable
38 38
         $exceptionType = null;
39 39
         foreach ($node->types as $type) {
40
-            if (in_array((string)$type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
41
-                $exceptionType = (string)$type;
40
+            if (in_array((string) $type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
41
+                $exceptionType = (string) $type;
42 42
                 break;
43 43
             }
44 44
         }
Please login to merge, or discard this patch.
src/Rules/Exceptions/EmptyExceptionRule.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use PhpParser\Node;
7 7
 use PhpParser\Node\Stmt\Catch_;
8 8
 use PHPStan\Analyser\Scope;
9
-use PHPStan\Broker\Broker;
10 9
 use PHPStan\Rules\Rule;
11 10
 use function strpos;
12 11
 
Please login to merge, or discard this patch.