Completed
Pull Request — master (#7)
by Tomáš
09:48 queued 03:17
created
src/Generators/Generator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 
15 15
 use PHP_CodeSniffer\Ruleset;
16 16
 use PHP_CodeSniffer\Autoload;
17
-use PHP_CodeSniffer\Util\Common;
18 17
 
19 18
 abstract class Generator
20 19
 {
Please login to merge, or discard this patch.
src/Reports/Diff.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace PHP_CodeSniffer\Reports;
11 11
 
12 12
 use PHP_CodeSniffer\Files\File;
13
-use PHP_CodeSniffer\Util;
14 13
 
15 14
 class Diff implements Report
16 15
 {
Please login to merge, or discard this patch.
src/Sniffs/AbstractPatternSniff.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace PHP_CodeSniffer\Sniffs;
11 11
 
12 12
 use PHP_CodeSniffer\Files\File;
13
-use PHP_CodeSniffer\Config;
14 13
 use PHP_CodeSniffer\Util\Tokens;
15 14
 use PHP_CodeSniffer\Tokenizers\PHP;
16 15
 use PHP_CodeSniffer\Exceptions\RuntimeException;
Please login to merge, or discard this patch.
src/Sniffs/AbstractVariableSniff.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 namespace PHP_CodeSniffer\Sniffs;
17 17
 
18 18
 use PHP_CodeSniffer\Files\File;
19
-use PHP_CodeSniffer\Exceptions\RuntimeException;
20 19
 
21 20
 abstract class AbstractVariableSniff extends AbstractScopeSniff
22 21
 {
Please login to merge, or discard this patch.
src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Sniffs\Sniff;
13 13
 use PHP_CodeSniffer\Files\File;
14
-use PHP_CodeSniffer\Util\Tokens;
15 14
 
16 15
 class SwitchDeclarationSniff implements Sniff
17 16
 {
Please login to merge, or discard this patch.
src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,6 @@
 block discarded – undo
89 89
         }
90 90
 }
91 91
 
92
-use Vendor\Test\FooBar;
93
-
94 92
 function test()
95 93
 {
96 94
     switch ($val) {
Please login to merge, or discard this patch.
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -1,15 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace MyProject;
3 3
 
4
-use BarClass as Bar;
5
-use My\Full\Classname as Another;
6
-
7
-
8
-use Something;
9
-use SomethingElse;
10
-
11 4
 // Comment here.
12
-use LastThing;
13 5
 
14 6
 class Foo {
15 7
 }
Please login to merge, or discard this patch.
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -1,14 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace MyProject;
3 3
 
4
-use  BarClass as Bar;
5
-use My\Full\Classname as Another, My\Full\NSname;
6
-
7 4
 
8 5
 namespace AnotherProject;
9 6
 
10
-use ArrayObject;
11
-
12 7
 
13 8
 $foo = 'bar';
14 9
 
Please login to merge, or discard this patch.
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace bug;
3 3
 
4
-use
5
-    someNS\A;
6
-use someNS\B;
7 4
 class Bug
8 5
 {
9 6
     public function __construct()
Please login to merge, or discard this patch.