Completed
Pull Request — develop (#91)
by Jaap
02:52
created
src/phpDocumentor/Reflection/Php/Factory/Class_.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,19 +13,16 @@
 block discarded – undo
13 13
 
14 14
 namespace phpDocumentor\Reflection\Php\Factory;
15 15
 
16
-use InvalidArgumentException;
17 16
 use phpDocumentor\Reflection\Element;
18 17
 use phpDocumentor\Reflection\Fqsen;
19 18
 use phpDocumentor\Reflection\Php\Class_ as ClassElement;
20 19
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
21 20
 use phpDocumentor\Reflection\Php\StrategyContainer;
22 21
 use phpDocumentor\Reflection\Types\Context;
23
-use PhpParser\Node;
24 22
 use PhpParser\Node\Stmt\Class_ as ClassNode;
25 23
 use PhpParser\Node\Stmt\ClassConst;
26 24
 use PhpParser\Node\Stmt\ClassMethod;
27 25
 use PhpParser\Node\Stmt\Property as PropertyNode;
28
-use PhpParser\Comment\Doc;
29 26
 use PhpParser\Node\Stmt\TraitUse;
30 27
 
31 28
 /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Method.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16 15
 use phpDocumentor\Reflection\Php\Method as MethodDescriptor;
17 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
18 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
19 18
 use phpDocumentor\Reflection\Php\Visibility;
20 19
 use phpDocumentor\Reflection\Types\Context;
21
-use PhpParser\Comment\Doc;
22 20
 use PhpParser\Node\Stmt\ClassMethod;
23 21
 
24 22
 /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Constant.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param ClassConstantIterator $object object to convert to an Element
63 63
      * @param StrategyContainer $strategies used to convert nested objects.
64 64
      * @param Context $context of the created object
65
-     * @return Constant
65
+     * @return ConstantElement
66 66
      */
67 67
     protected function doCreate($object, StrategyContainer $strategies, Context $context = null)
68 68
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19 19
 use phpDocumentor\Reflection\PrettyPrinter;
20 20
 use phpDocumentor\Reflection\Types\Context;
21
-use PhpParser\Comment\Doc;
22 21
 
23 22
 /**
24 23
  * Strategy to convert ClassConstantIterator to ConstantElement
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Function_.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,14 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16
-use phpDocumentor\Reflection\Fqsen;
17 15
 use phpDocumentor\Reflection\Php\Factory;
18 16
 use phpDocumentor\Reflection\Php\Function_ as FunctionDescriptor;
19 17
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
20 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
21 19
 use phpDocumentor\Reflection\Types\Context;
22
-use PhpParser\Comment\Doc;
23 20
 use PhpParser\Node\Stmt\Function_ as FunctionNode;
24 21
 
25 22
 /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Interface_.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,14 +12,11 @@
 block discarded – undo
12 12
 
13 13
 
14 14
 namespace phpDocumentor\Reflection\Php\Factory;
15
-use InvalidArgumentException;
16 15
 use phpDocumentor\Reflection\Element;
17 16
 use phpDocumentor\Reflection\Fqsen;
18 17
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
19 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
20 19
 use phpDocumentor\Reflection\Types\Context;
21
-use PhpParser\Comment\Doc;
22
-use PhpParser\Node;
23 20
 use PhpParser\Node\Stmt\ClassConst;
24 21
 use PhpParser\Node\Stmt\ClassMethod;
25 22
 use PhpParser\Node\Stmt\Interface_ as InterfaceNode;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Property.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16 15
 use phpDocumentor\Reflection\Php\Method as MethodDescriptor;
17 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
18 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
19 18
 use phpDocumentor\Reflection\Php\Visibility;
20 19
 use phpDocumentor\Reflection\Types\Context;
21
-use PhpParser\Comment\Doc;
22 20
 use PhpParser\Node\Stmt\ClassMethod;
23 21
 
24 22
 /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Trait_.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -12,15 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16
-use phpDocumentor\Reflection\Element;
17 15
 use phpDocumentor\Reflection\Fqsen;
18 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
19 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
20 18
 use phpDocumentor\Reflection\Php\Trait_ as TraitElement;
21 19
 use phpDocumentor\Reflection\Types\Context;
22
-use PhpParser\Comment\Doc;
23
-use PhpParser\Node;
24 20
 use PhpParser\Node\Stmt\ClassMethod;
25 21
 use PhpParser\Node\Stmt\Property as PropertyNode;
26 22
 use PhpParser\Node\Stmt\Trait_ as TraitNode;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/File.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@  discard block
 block discarded – undo
13 13
 
14 14
 namespace phpDocumentor\Reflection\Php\Factory;
15 15
 
16
-use InvalidArgumentException;
17 16
 use phpDocumentor\Reflection\File as FileSystemFile;
18 17
 use phpDocumentor\Reflection\Fqsen;
19 18
 use phpDocumentor\Reflection\Middleware\ChainFactory;
@@ -26,7 +25,6 @@  discard block
 block discarded – undo
26 25
 use phpDocumentor\Reflection\Types\Context;
27 26
 use phpDocumentor\Reflection\Types\ContextFactory;
28 27
 use PhpParser\Comment\Doc;
29
-use PhpParser\Lexer;
30 28
 use PhpParser\Node;
31 29
 use PhpParser\Node\Stmt\Class_ as ClassNode;
32 30
 use PhpParser\Node\Stmt\Function_ as FunctionNode;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Middleware/ChainFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                     )
34 34
                 );
35 35
             }
36
-            $lastCallable = function ($command) use ($middleware, $lastCallable) {
36
+            $lastCallable = function($command) use ($middleware, $lastCallable) {
37 37
                 return $middleware->execute($command, $lastCallable);
38 38
             };
39 39
         }
Please login to merge, or discard this patch.